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
- ToolStripStatusLabel.cs
- OpacityConverter.cs
- DispatcherExceptionFilterEventArgs.cs
- EntityKey.cs
- DynamicRendererThreadManager.cs
- AttributeCollection.cs
- DeviceContexts.cs
- PagesSection.cs
- MemberMaps.cs
- ConfigurationCollectionAttribute.cs
- SrgsSubset.cs
- WebPartExportVerb.cs
- InputGestureCollection.cs
- DesignerHelpers.cs
- AspNetSynchronizationContext.cs
- TextTreePropertyUndoUnit.cs
- BoolExpressionVisitors.cs
- MimePart.cs
- ProfileEventArgs.cs
- WebServiceClientProxyGenerator.cs
- ListComponentEditorPage.cs
- CategoryNameCollection.cs
- CodeExpressionCollection.cs
- SoapReflectionImporter.cs
- AnonymousIdentificationModule.cs
- OleDbInfoMessageEvent.cs
- LicenseProviderAttribute.cs
- DateBoldEvent.cs
- DefaultSerializationProviderAttribute.cs
- _Semaphore.cs
- HtmlTextArea.cs
- InputMethodStateTypeInfo.cs
- XsltLibrary.cs
- diagnosticsswitches.cs
- SQLDateTime.cs
- InternalMappingException.cs
- Baml2006Reader.cs
- XmlSchemaIdentityConstraint.cs
- ToolStripTextBox.cs
- FormDocumentDesigner.cs
- PageCatalogPart.cs
- ComponentManagerBroker.cs
- MsmqBindingElementBase.cs
- DateTimeValueSerializerContext.cs
- PerformanceCounterCategory.cs
- ExtendedTransformFactory.cs
- Span.cs
- Html32TextWriter.cs
- MetadataItemEmitter.cs
- Mouse.cs
- TrackingDataItemValue.cs
- IntegerValidatorAttribute.cs
- SqlDataRecord.cs
- StyleCollection.cs
- SQLByteStorage.cs
- PixelFormat.cs
- ExpressionDumper.cs
- ToolTipService.cs
- AmbiguousMatchException.cs
- DBDataPermissionAttribute.cs
- UserNameSecurityTokenAuthenticator.cs
- TypeElementCollection.cs
- WindowsListViewItemCheckBox.cs
- ResourceAttributes.cs
- ComponentEditorPage.cs
- XmlExceptionHelper.cs
- BoolExpressionVisitors.cs
- CodeTypeOfExpression.cs
- FtpCachePolicyElement.cs
- Matrix3D.cs
- diagnosticsswitches.cs
- SpellCheck.cs
- SmiSettersStream.cs
- RootCodeDomSerializer.cs
- XmlSerializerVersionAttribute.cs
- ZoneIdentityPermission.cs
- GregorianCalendarHelper.cs
- SQLChars.cs
- AppLevelCompilationSectionCache.cs
- SafeIUnknown.cs
- Token.cs
- LoginView.cs
- StateChangeEvent.cs
- ScrollBarRenderer.cs
- documentsequencetextpointer.cs
- PaintValueEventArgs.cs
- ObjectDataSourceDisposingEventArgs.cs
- SystemException.cs
- Geometry.cs
- NetworkInformationException.cs
- DllNotFoundException.cs
- SimpleBitVector32.cs
- CustomPopupPlacement.cs
- OptionUsage.cs
- RotationValidation.cs
- InternalPolicyElement.cs
- ActivityTypeResolver.xaml.cs
- ResourcesGenerator.cs
- SortFieldComparer.cs
- IIS7UserPrincipal.cs