Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / NetworkInformation / PingOptions.cs / 1 / PingOptions.cs
//determines which options will be used for sending icmp requests, as well as what options //were set in the returned icmp reply. namespace System.Net.NetworkInformation { // Represent the possible ip options used for the icmp packet public class PingOptions { const int DontFragmentFlag = 2; int ttl = 128; bool dontFragment; internal PingOptions (IPOptions options) { this.ttl = options.ttl; this.dontFragment = ((options.flags & DontFragmentFlag) > 0 ? true : false); } public PingOptions (int ttl, bool dontFragment) { if (ttl <= 0) { throw new ArgumentOutOfRangeException("ttl"); } this.ttl = ttl; this.dontFragment = dontFragment; } public PingOptions () { } public int Ttl { get { return ttl; } set { if (value <= 0) { throw new ArgumentOutOfRangeException("value"); } ttl = value; //useful to discover routes } } public bool DontFragment { get { return dontFragment; } set { dontFragment = value; //useful for discovering mtu } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RegexParser.cs
- DesignerVerb.cs
- ReliabilityContractAttribute.cs
- NetCodeGroup.cs
- EntityCollection.cs
- UnsafeNetInfoNativeMethods.cs
- UInt32Storage.cs
- RedBlackList.cs
- DbConnectionOptions.cs
- CodeTypeOfExpression.cs
- InvokePattern.cs
- GeometryCollection.cs
- MeshGeometry3D.cs
- UnsafeNativeMethods.cs
- PriorityBindingExpression.cs
- ListViewAutomationPeer.cs
- StateMachineWorkflowDesigner.cs
- GZipDecoder.cs
- WebPartAddingEventArgs.cs
- CodeIndexerExpression.cs
- SessionStateSection.cs
- CheckBoxList.cs
- DirectoryInfo.cs
- Menu.cs
- PopupRoot.cs
- CultureInfoConverter.cs
- ComponentResourceManager.cs
- DocumentViewerConstants.cs
- CodeDelegateInvokeExpression.cs
- MDIClient.cs
- DelayedRegex.cs
- xmlsaver.cs
- GuidelineCollection.cs
- SocketException.cs
- _Events.cs
- XmlArrayItemAttribute.cs
- BoundField.cs
- AssertUtility.cs
- COAUTHIDENTITY.cs
- MimeWriter.cs
- DbConnectionInternal.cs
- KeySplineConverter.cs
- DeadCharTextComposition.cs
- OdbcConnectionPoolProviderInfo.cs
- BindingNavigator.cs
- PeerTransportSecuritySettings.cs
- TextBoxView.cs
- DataGridTextColumn.cs
- SQLMembershipProvider.cs
- PerformanceCounterPermissionAttribute.cs
- AxisAngleRotation3D.cs
- WindowsRebar.cs
- NamespaceCollection.cs
- SqlDataSourceTableQuery.cs
- OletxEnlistment.cs
- ListItemCollection.cs
- MsmqBindingElementBase.cs
- ClientRoleProvider.cs
- DebugController.cs
- ReceiveContext.cs
- ErrorItem.cs
- XmlHelper.cs
- ComboBox.cs
- Keywords.cs
- PersonalizablePropertyEntry.cs
- UnmanagedMemoryStream.cs
- XmlSchemaAttributeGroup.cs
- CodeTypeDeclarationCollection.cs
- Screen.cs
- SqlMultiplexer.cs
- DesignTimeParseData.cs
- RoutedPropertyChangedEventArgs.cs
- sqlstateclientmanager.cs
- SafeTokenHandle.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- EmptyElement.cs
- PublisherMembershipCondition.cs
- FlowLayout.cs
- PointUtil.cs
- ComponentDispatcherThread.cs
- ClientRolePrincipal.cs
- DelegateOutArgument.cs
- NTAccount.cs
- TraceInternal.cs
- QueryContinueDragEvent.cs
- RijndaelManaged.cs
- PackWebResponse.cs
- XXXOnTypeBuilderInstantiation.cs
- KeyValuePairs.cs
- LinkLabel.cs
- log.cs
- MsmqChannelFactoryBase.cs
- WebPartEditVerb.cs
- SafeCryptoHandles.cs
- LambdaSerializationException.cs
- TextParaClient.cs
- Events.cs
- HttpModuleCollection.cs
- HtmlContainerControl.cs
- CompiledQueryCacheEntry.cs