Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / NetworkInformation / PingOptions.cs / 1305376 / 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 } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DesignerView.Commands.cs
- MemberExpressionHelper.cs
- AnnotationMap.cs
- XhtmlTextWriter.cs
- TableProviderWrapper.cs
- SoapSchemaExporter.cs
- TextDecoration.cs
- PagerSettings.cs
- SqlProcedureAttribute.cs
- DPAPIProtectedConfigurationProvider.cs
- WebSysDescriptionAttribute.cs
- StrokeNodeOperations.cs
- ToolStripDesignerUtils.cs
- OleDbSchemaGuid.cs
- TextDecorations.cs
- CodeSubDirectory.cs
- RIPEMD160Managed.cs
- metadatamappinghashervisitor.cs
- RuntimeEnvironment.cs
- __Filters.cs
- TogglePattern.cs
- ProcessManager.cs
- FilteredReadOnlyMetadataCollection.cs
- basevalidator.cs
- ValidatingReaderNodeData.cs
- IODescriptionAttribute.cs
- _NegoStream.cs
- DataGridViewSelectedColumnCollection.cs
- TypedTableBaseExtensions.cs
- SignatureDescription.cs
- relpropertyhelper.cs
- MeasurementDCInfo.cs
- AppDomainShutdownMonitor.cs
- ScriptModule.cs
- HtmlInputSubmit.cs
- X509ClientCertificateAuthenticationElement.cs
- SchemaNamespaceManager.cs
- DesignTimeSiteMapProvider.cs
- Matrix3DValueSerializer.cs
- XPathDocumentNavigator.cs
- IdleTimeoutMonitor.cs
- WizardStepBase.cs
- ChangeNode.cs
- DashStyle.cs
- XmlCharacterData.cs
- TableDetailsCollection.cs
- XmlObjectSerializerContext.cs
- XsltOutput.cs
- WinFormsSpinner.cs
- VisualStateChangedEventArgs.cs
- FilteredAttributeCollection.cs
- HeaderCollection.cs
- XmlTextAttribute.cs
- RewritingValidator.cs
- ProjectionCamera.cs
- ScrollEventArgs.cs
- Pens.cs
- ReflectionTypeLoadException.cs
- PointAnimationBase.cs
- MethodBuilderInstantiation.cs
- PnrpPermission.cs
- StubHelpers.cs
- DoubleLink.cs
- RegisteredScript.cs
- SoapSchemaExporter.cs
- TypeConverterHelper.cs
- FullTrustAssembly.cs
- TypePropertyEditor.cs
- FacetValues.cs
- DPCustomTypeDescriptor.cs
- DeleteCardRequest.cs
- RectangleGeometry.cs
- ResourcePool.cs
- FrugalList.cs
- SecurityTraceRecordHelper.cs
- DataGrid.cs
- IPGlobalProperties.cs
- HtmlTextArea.cs
- InvalidateEvent.cs
- RoutedEventConverter.cs
- AggregateNode.cs
- HtmlMobileTextWriter.cs
- UserPreferenceChangingEventArgs.cs
- SHA384Cng.cs
- DataPagerFieldCommandEventArgs.cs
- ContractTypeNameElement.cs
- PropertyKey.cs
- SerializationFieldInfo.cs
- DynamicILGenerator.cs
- CodeValidator.cs
- ProxyGenerationError.cs
- SecurityCriticalDataForSet.cs
- safelink.cs
- QuaternionRotation3D.cs
- __TransparentProxy.cs
- ExpressionVisitor.cs
- ReferenceEqualityComparer.cs
- ProcessHostMapPath.cs
- Line.cs
- StylusPlugin.cs