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
- Matrix3DValueSerializer.cs
- WinInet.cs
- AccessedThroughPropertyAttribute.cs
- OleDbConnectionFactory.cs
- InheritanceAttribute.cs
- Zone.cs
- ErrorRuntimeConfig.cs
- ISAPIApplicationHost.cs
- LinqExpressionNormalizer.cs
- Soap11ServerProtocol.cs
- ApplicationId.cs
- SqlDataSourceStatusEventArgs.cs
- SHA512Managed.cs
- DefaultWorkflowSchedulerService.cs
- HighlightVisual.cs
- DataGridViewSortCompareEventArgs.cs
- SmiEventStream.cs
- ElementHostAutomationPeer.cs
- DataColumn.cs
- MenuItem.cs
- ServiceInfoCollection.cs
- ObjectAnimationBase.cs
- FileUpload.cs
- TransactionScope.cs
- SubqueryRules.cs
- SpellerInterop.cs
- NameValueFileSectionHandler.cs
- MenuAdapter.cs
- Drawing.cs
- SafeCryptoHandles.cs
- ConstraintEnumerator.cs
- Html32TextWriter.cs
- TemplateBaseAction.cs
- EntitySqlQueryCacheEntry.cs
- UserControlParser.cs
- ImageSourceConverter.cs
- ConstructorBuilder.cs
- DataGridViewLayoutData.cs
- ScriptControlManager.cs
- PrimitiveOperationFormatter.cs
- RuntimeTransactionHandle.cs
- OpenTypeCommon.cs
- FormViewRow.cs
- TdsRecordBufferSetter.cs
- NumericUpDownAccelerationCollection.cs
- LocalizabilityAttribute.cs
- HtmlControl.cs
- BaseParagraph.cs
- ForeignKeyConstraint.cs
- TableLayoutColumnStyleCollection.cs
- ServicePointManagerElement.cs
- PerfProviderCollection.cs
- AddingNewEventArgs.cs
- SchemaElementLookUpTable.cs
- CommandBindingCollection.cs
- HtmlWindow.cs
- TCEAdapterGenerator.cs
- StaticTextPointer.cs
- BindingsCollection.cs
- BooleanSwitch.cs
- HMACRIPEMD160.cs
- AdRotator.cs
- WindowVisualStateTracker.cs
- LoginUtil.cs
- PackageRelationshipSelector.cs
- HtmlInputRadioButton.cs
- CodeBinaryOperatorExpression.cs
- RealizationContext.cs
- ToolStripSystemRenderer.cs
- ListSortDescriptionCollection.cs
- FormsAuthenticationTicket.cs
- ResourceSetExpression.cs
- PolicyValidationException.cs
- DirectoryObjectSecurity.cs
- WeakEventManager.cs
- SafeMILHandleMemoryPressure.cs
- TransactionProxy.cs
- DynamicRendererThreadManager.cs
- CngUIPolicy.cs
- FormatException.cs
- ActivationArguments.cs
- InvalidProgramException.cs
- StatusStrip.cs
- CorrelationResolver.cs
- SchemaObjectWriter.cs
- FileCodeGroup.cs
- BStrWrapper.cs
- EventHandlingScope.cs
- MenuItem.cs
- AssemblyResolver.cs
- SmtpException.cs
- HttpTransportBindingElement.cs
- Rights.cs
- XPathNodeList.cs
- FieldMetadata.cs
- ThaiBuddhistCalendar.cs
- TextEditorSelection.cs
- DoubleLinkListEnumerator.cs
- KnownTypes.cs
- EdmComplexTypeAttribute.cs