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
- NativeMethods.cs
- ButtonFieldBase.cs
- ConnectionPointCookie.cs
- ImportContext.cs
- ArgumentException.cs
- Selection.cs
- RecognitionResult.cs
- RecordManager.cs
- SecurityTokenParametersEnumerable.cs
- TextFormatterImp.cs
- HideDisabledControlAdapter.cs
- ProvideValueServiceProvider.cs
- Attribute.cs
- RowToParametersTransformer.cs
- EditBehavior.cs
- RMEnrollmentPage3.cs
- HttpProfileGroupBase.cs
- SoapSchemaMember.cs
- InheritanceRules.cs
- LinkedResourceCollection.cs
- WSDualHttpBindingCollectionElement.cs
- ErrorFormatterPage.cs
- PeerResolverBindingElement.cs
- AstTree.cs
- FontStretchConverter.cs
- HintTextMaxWidthConverter.cs
- ItemsControlAutomationPeer.cs
- ParenthesizePropertyNameAttribute.cs
- ValueType.cs
- util.cs
- TextOnlyOutput.cs
- DefaultSection.cs
- QualificationDataAttribute.cs
- DataServiceContext.cs
- SqlDataSourceCommandEventArgs.cs
- UIPropertyMetadata.cs
- EntryWrittenEventArgs.cs
- EntityDataSourceChangingEventArgs.cs
- ObjectDataSourceDesigner.cs
- HandoffBehavior.cs
- MenuAdapter.cs
- TextAction.cs
- RecognitionResult.cs
- SortAction.cs
- objectquery_tresulttype.cs
- WebPartActionVerb.cs
- OracleBinary.cs
- EpmCustomContentWriterNodeData.cs
- CatalogPartChrome.cs
- keycontainerpermission.cs
- HtmlImage.cs
- ObservableCollectionDefaultValueFactory.cs
- CodeLabeledStatement.cs
- SnapshotChangeTrackingStrategy.cs
- NameValueSectionHandler.cs
- HyperLinkColumn.cs
- ColumnProvider.cs
- ILGenerator.cs
- MD5HashHelper.cs
- _ScatterGatherBuffers.cs
- SystemIPAddressInformation.cs
- BeginEvent.cs
- OneWayBindingElementImporter.cs
- LinqDataSourceEditData.cs
- CellParaClient.cs
- ModuleBuilder.cs
- TableLayoutCellPaintEventArgs.cs
- ControlPropertyNameConverter.cs
- SyndicationPerson.cs
- NativeMethods.cs
- RectangleGeometry.cs
- RouteTable.cs
- QueryBranchOp.cs
- TypeGenericEnumerableViewSchema.cs
- CultureTableRecord.cs
- SQLBinary.cs
- SineEase.cs
- EntityWithKeyStrategy.cs
- DPCustomTypeDescriptor.cs
- StylusButtonCollection.cs
- PropertyChangingEventArgs.cs
- DataTableReaderListener.cs
- CodePropertyReferenceExpression.cs
- DefaultParameterValueAttribute.cs
- ExtensionFile.cs
- SerializationAttributes.cs
- ToolStripOverflowButton.cs
- PageAsyncTaskManager.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- Stylesheet.cs
- FileRegion.cs
- DelegatingTypeDescriptionProvider.cs
- CodeTypeReferenceSerializer.cs
- PrintPreviewGraphics.cs
- TransformationRules.cs
- Rules.cs
- DataGridViewColumnEventArgs.cs
- OrderablePartitioner.cs
- DetailsViewPagerRow.cs
- EntityContainerEntitySet.cs