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
- MediaElement.cs
- InputScopeAttribute.cs
- WebServiceTypeData.cs
- DataGridViewRowCollection.cs
- SortQuery.cs
- ConfigurationManagerInternalFactory.cs
- Color.cs
- SessionPageStatePersister.cs
- X500Name.cs
- DesignerLoader.cs
- StreamUpgradeInitiator.cs
- ACE.cs
- UnsafeCollabNativeMethods.cs
- CodeStatementCollection.cs
- AuthorizationRule.cs
- BitmapEffect.cs
- AvTraceFormat.cs
- RegularExpressionValidator.cs
- ButtonChrome.cs
- ImageClickEventArgs.cs
- CombinedGeometry.cs
- PartitionResolver.cs
- OutOfMemoryException.cs
- ContainerAction.cs
- InputManager.cs
- ContextProperty.cs
- CharacterHit.cs
- RIPEMD160.cs
- DateTimeFormat.cs
- OutputWindow.cs
- SynchronizedDispatch.cs
- FieldTemplateUserControl.cs
- StyleSheetComponentEditor.cs
- RoleGroupCollection.cs
- VolatileResourceManager.cs
- RestClientProxyHandler.cs
- Serializer.cs
- FixedNode.cs
- DataGridTableCollection.cs
- SemanticResultKey.cs
- Model3DGroup.cs
- SettingsProviderCollection.cs
- XPathArrayIterator.cs
- QuadraticBezierSegment.cs
- SQLBytes.cs
- HwndSourceParameters.cs
- TextEffect.cs
- MissingSatelliteAssemblyException.cs
- PeerNameRecord.cs
- WorkflowOperationAsyncResult.cs
- DeviceContexts.cs
- TextParagraphView.cs
- GiveFeedbackEvent.cs
- QuaternionRotation3D.cs
- DriveInfo.cs
- MultipleViewPattern.cs
- ReferenceEqualityComparer.cs
- DeclarativeCatalogPart.cs
- UInt64Converter.cs
- PackageDigitalSignature.cs
- mda.cs
- MimeMultiPart.cs
- WindowProviderWrapper.cs
- ItemContainerPattern.cs
- BoundField.cs
- EntityAdapter.cs
- EventDescriptor.cs
- ToolStripPanel.cs
- FullTextState.cs
- Transform.cs
- StatusBar.cs
- Directory.cs
- BezierSegment.cs
- InvalidPrinterException.cs
- RectAnimationUsingKeyFrames.cs
- PropertyInformation.cs
- EmptyElement.cs
- PageCache.cs
- _Rfc2616CacheValidators.cs
- ColumnResizeUndoUnit.cs
- ThreadPool.cs
- PassportAuthenticationEventArgs.cs
- TimeIntervalCollection.cs
- EditingCoordinator.cs
- safelinkcollection.cs
- UserPreferenceChangedEventArgs.cs
- DataBoundLiteralControl.cs
- RequestCache.cs
- ToolStripContentPanel.cs
- Control.cs
- SamlAssertionKeyIdentifierClause.cs
- Matrix.cs
- QueryExpr.cs
- TdsParserHelperClasses.cs
- GacUtil.cs
- PrivateFontCollection.cs
- ToolStripContentPanelRenderEventArgs.cs
- SingleStorage.cs
- SchemaMerger.cs
- BinaryObjectWriter.cs