Code:
/ DotNET / DotNET / 8.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
- Single.cs
- AssertFilter.cs
- RootAction.cs
- HttpHandlerAction.cs
- EncoderNLS.cs
- TextBox.cs
- QueryableFilterUserControl.cs
- Baml2006ReaderSettings.cs
- CultureMapper.cs
- MailWriter.cs
- ButtonChrome.cs
- ContextStaticAttribute.cs
- COM2ExtendedBrowsingHandler.cs
- AsyncCompletedEventArgs.cs
- JsonQueryStringConverter.cs
- SimpleHandlerFactory.cs
- ClientTargetSection.cs
- StyleHelper.cs
- XmlQueryStaticData.cs
- HostedController.cs
- UiaCoreTypesApi.cs
- AssemblyBuilderData.cs
- isolationinterop.cs
- Evaluator.cs
- TypeConverterValueSerializer.cs
- XNodeNavigator.cs
- LinqDataSourceSelectEventArgs.cs
- ResourceAssociationType.cs
- TextServicesLoader.cs
- InteropDesigner.xaml.cs
- ParamArrayAttribute.cs
- Subset.cs
- ButtonField.cs
- TablePattern.cs
- ResolveResponseInfo.cs
- AttachedAnnotation.cs
- wgx_exports.cs
- FixedSOMLineCollection.cs
- DBSchemaTable.cs
- DirectionalLight.cs
- LeafCellTreeNode.cs
- TextParaClient.cs
- InfiniteTimeSpanConverter.cs
- CrossAppDomainChannel.cs
- UpdateCommand.cs
- DataListComponentEditor.cs
- JsonDataContract.cs
- ChildrenQuery.cs
- Message.cs
- UInt64Storage.cs
- Package.cs
- __TransparentProxy.cs
- FileLevelControlBuilderAttribute.cs
- oledbconnectionstring.cs
- NumberSubstitution.cs
- InfoCardListRequest.cs
- HtmlTableCell.cs
- WebContext.cs
- SmtpSection.cs
- XmlUtf8RawTextWriter.cs
- DocumentXmlWriter.cs
- WorkflowItemsPresenter.cs
- FileAuthorizationModule.cs
- ByteStack.cs
- IndentedTextWriter.cs
- ModelPerspective.cs
- __Filters.cs
- EditorPartChrome.cs
- EventTrigger.cs
- MinMaxParagraphWidth.cs
- TypeInformation.cs
- ApplicationContext.cs
- SliderAutomationPeer.cs
- OdbcFactory.cs
- ErrorWebPart.cs
- DesignerTransaction.cs
- ScrollChrome.cs
- ShellProvider.cs
- UncommonField.cs
- SafeNativeMethods.cs
- DrawingContextWalker.cs
- X509ImageLogo.cs
- OperatorExpressions.cs
- VirtualizedItemProviderWrapper.cs
- ReadOnlyDictionary.cs
- ImportCatalogPart.cs
- EdmScalarPropertyAttribute.cs
- ToolBarButton.cs
- Thickness.cs
- TimeSpanOrInfiniteConverter.cs
- MemberExpressionHelper.cs
- NavigateEvent.cs
- TextDecorationLocationValidation.cs
- XmlSchemaValidationException.cs
- Path.cs
- ParseHttpDate.cs
- WorkflowItemPresenter.cs
- ObjectContextServiceProvider.cs
- DNS.cs
- WebPartCloseVerb.cs