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
- UpWmlPageAdapter.cs
- RenderingBiasValidation.cs
- NavigationPropertyAccessor.cs
- WmlPhoneCallAdapter.cs
- DiscoveryMessageSequence11.cs
- ReflectionUtil.cs
- ExitEventArgs.cs
- wgx_exports.cs
- MachinePropertyVariants.cs
- CacheHelper.cs
- PostBackOptions.cs
- TimeStampChecker.cs
- TableStyle.cs
- VersionValidator.cs
- MetafileEditor.cs
- DataGridViewLinkCell.cs
- CustomCategoryAttribute.cs
- HtmlLiteralTextAdapter.cs
- UIAgentMonitor.cs
- EntityDataSourceState.cs
- PeerNearMe.cs
- RealizationDrawingContextWalker.cs
- CodeMemberField.cs
- MsmqTransportElement.cs
- DataKeyArray.cs
- MediaContextNotificationWindow.cs
- xsdvalidator.cs
- JournalEntryListConverter.cs
- BufferAllocator.cs
- ReverseQueryOperator.cs
- BinaryMethodMessage.cs
- NamedPermissionSet.cs
- WebPartConnectVerb.cs
- PolyQuadraticBezierSegment.cs
- XmlCollation.cs
- Decimal.cs
- GenericUI.cs
- ContentValidator.cs
- WindowVisualStateTracker.cs
- SQLDateTimeStorage.cs
- ScrollViewer.cs
- OpCodes.cs
- BridgeDataRecord.cs
- BindingExpressionBase.cs
- SecureEnvironment.cs
- XmlSchemaAny.cs
- ListMarkerSourceInfo.cs
- TreeViewTemplateSelector.cs
- ButtonBase.cs
- BrushValueSerializer.cs
- EditingScopeUndoUnit.cs
- ConfigPathUtility.cs
- WindowsComboBox.cs
- CodeAttributeArgument.cs
- View.cs
- WebPartDisplayMode.cs
- SystemInformation.cs
- configsystem.cs
- HelpKeywordAttribute.cs
- ExpressionTextBox.xaml.cs
- ChannelManager.cs
- CombinedGeometry.cs
- Convert.cs
- LogEntryDeserializer.cs
- FormViewCommandEventArgs.cs
- Decimal.cs
- ConfigurationManagerHelperFactory.cs
- PageDeviceFont.cs
- Rect3D.cs
- PolicyStatement.cs
- SharedDp.cs
- DynamicMethod.cs
- Select.cs
- Triangle.cs
- SlotInfo.cs
- MaterialCollection.cs
- TextDecorationCollection.cs
- DependencyPropertyKey.cs
- PartialList.cs
- WsdlEndpointConversionContext.cs
- GlobalItem.cs
- IApplicationTrustManager.cs
- ElementUtil.cs
- ModelTreeEnumerator.cs
- SessionStateUtil.cs
- HybridCollection.cs
- XmlUtf8RawTextWriter.cs
- MultipleViewPatternIdentifiers.cs
- DbFunctionCommandTree.cs
- XmlQualifiedName.cs
- GeneralTransformCollection.cs
- ProbeRequestResponseAsyncResult.cs
- FieldReference.cs
- Matrix.cs
- RecognizedWordUnit.cs
- LinkTarget.cs
- FormParameter.cs
- XmlWrappingWriter.cs
- XamlTreeBuilderBamlRecordWriter.cs
- SqlDataRecord.cs