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
- DataGridViewComboBoxEditingControl.cs
- OlePropertyStructs.cs
- CompensationToken.cs
- MetaColumn.cs
- PathGeometry.cs
- TextComposition.cs
- manifestimages.cs
- BitmapFrameEncode.cs
- InstallerTypeAttribute.cs
- WmlSelectionListAdapter.cs
- DataGridState.cs
- NeutralResourcesLanguageAttribute.cs
- BitmapDecoder.cs
- _ConnectOverlappedAsyncResult.cs
- SHA1CryptoServiceProvider.cs
- PerformanceCountersBase.cs
- ServiceProviders.cs
- WebUtil.cs
- CompensationHandlingFilter.cs
- _ServiceNameStore.cs
- CacheRequest.cs
- Attribute.cs
- AggregateException.cs
- RangeValuePattern.cs
- OuterGlowBitmapEffect.cs
- TypeDescriptionProviderAttribute.cs
- PropertyDescriptor.cs
- QilFactory.cs
- BitmapVisualManager.cs
- SqlStream.cs
- ReflectEventDescriptor.cs
- ComboBoxRenderer.cs
- OdbcConnectionString.cs
- SymmetricAlgorithm.cs
- XmlNamespaceMapping.cs
- DataServiceKeyAttribute.cs
- ListChangedEventArgs.cs
- WebDescriptionAttribute.cs
- PostBackOptions.cs
- TextOnlyOutput.cs
- ShaderEffect.cs
- ByteConverter.cs
- VisualBrush.cs
- EventLogEntryCollection.cs
- TextEffect.cs
- RC2.cs
- TreeNodeCollection.cs
- LineBreak.cs
- DataGridViewSortCompareEventArgs.cs
- ObjectTag.cs
- MailDefinition.cs
- DiscoveryMessageSequenceGenerator.cs
- QuestionEventArgs.cs
- InvokeGenerator.cs
- CustomAttributeFormatException.cs
- CodeArrayCreateExpression.cs
- CatalogPart.cs
- CacheMemory.cs
- SupportsPreviewControlAttribute.cs
- EditorAttribute.cs
- RelationshipDetailsRow.cs
- PerfProviderCollection.cs
- SpStreamWrapper.cs
- PageAsyncTaskManager.cs
- SyncOperationState.cs
- RequestNavigateEventArgs.cs
- DataGridCommandEventArgs.cs
- Queue.cs
- DataControlImageButton.cs
- UIElement.cs
- UITypeEditor.cs
- shaper.cs
- TreeNodeSelectionProcessor.cs
- XmlMapping.cs
- RuntimeHandles.cs
- XmlNodeChangedEventArgs.cs
- ThreadAbortException.cs
- VoiceObjectToken.cs
- DispatchOperation.cs
- TextEffect.cs
- ScrollableControl.cs
- RelationshipManager.cs
- Visual3D.cs
- linebase.cs
- DbModificationCommandTree.cs
- HttpHandlersSection.cs
- WaveHeader.cs
- RegionData.cs
- StsCommunicationException.cs
- XmlSchemaIdentityConstraint.cs
- PrintDialog.cs
- ButtonBase.cs
- WorkflowInstanceUnhandledExceptionRecord.cs
- FixedBufferAttribute.cs
- TabRenderer.cs
- EntitySetBase.cs
- StyleCollection.cs
- OutputCacheProfileCollection.cs
- FindProgressChangedEventArgs.cs
- RoleManagerModule.cs