Code:
/ DotNET / DotNET / 8.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
- EntityDataSource.cs
- Compiler.cs
- ServiceHttpModule.cs
- SystemDiagnosticsSection.cs
- ObjectDataSourceEventArgs.cs
- Propagator.cs
- DbConnectionPoolIdentity.cs
- ToolStripSettings.cs
- CheckPair.cs
- ProviderUtil.cs
- EnumValAlphaComparer.cs
- ObjectParameterCollection.cs
- RotateTransform.cs
- QueryStringParameter.cs
- UnaryNode.cs
- SqlProcedureAttribute.cs
- LogicalExpr.cs
- VerticalConnector.xaml.cs
- DataGridPageChangedEventArgs.cs
- _ShellExpression.cs
- PluggableProtocol.cs
- ObjectSecurityT.cs
- WindowsContainer.cs
- FragmentNavigationEventArgs.cs
- IPCCacheManager.cs
- PingOptions.cs
- HttpProcessUtility.cs
- ExitEventArgs.cs
- AuthenticationService.cs
- OleDbRowUpdatingEvent.cs
- ConsoleKeyInfo.cs
- CachedRequestParams.cs
- HtmlMobileTextWriter.cs
- Listbox.cs
- ServiceContractAttribute.cs
- TypefaceCollection.cs
- DbConnectionPoolGroupProviderInfo.cs
- StringInfo.cs
- LocatorPart.cs
- followingquery.cs
- BoundColumn.cs
- TrustLevel.cs
- PropertyHelper.cs
- RelatedView.cs
- FileIOPermission.cs
- UxThemeWrapper.cs
- PackageDigitalSignature.cs
- ValidationManager.cs
- IBuiltInEvidence.cs
- HttpApplication.cs
- UInt16.cs
- HtmlShim.cs
- tooltip.cs
- LocationUpdates.cs
- XmlCountingReader.cs
- ConfigurationManager.cs
- BamlRecordHelper.cs
- ZoneButton.cs
- COM2ICategorizePropertiesHandler.cs
- RegexEditorDialog.cs
- DynamicObjectAccessor.cs
- ClientSession.cs
- ModelFactory.cs
- ContractSearchPattern.cs
- WindowsRegion.cs
- TdsParser.cs
- RawStylusActions.cs
- Quaternion.cs
- SystemNetworkInterface.cs
- ClientApiGenerator.cs
- WpfKnownTypeInvoker.cs
- TrackingLocation.cs
- SchemaCollectionPreprocessor.cs
- MsmqInputChannelListener.cs
- TableCellAutomationPeer.cs
- TextSerializer.cs
- DataContractSerializerSection.cs
- AdornerHitTestResult.cs
- ProcessHostConfigUtils.cs
- CookieHandler.cs
- BaseValidator.cs
- EpmSyndicationContentDeSerializer.cs
- CompositeActivityCodeGenerator.cs
- CategoryAttribute.cs
- MsmqMessageProperty.cs
- Timer.cs
- SerializableAttribute.cs
- ServerIdentity.cs
- MediaElementAutomationPeer.cs
- ViewStateModeByIdAttribute.cs
- GridSplitter.cs
- BooleanConverter.cs
- EdmSchemaAttribute.cs
- CodeSnippetTypeMember.cs
- CalendarDateRangeChangingEventArgs.cs
- OdbcParameter.cs
- CommonXSendMessage.cs
- SortKey.cs
- IteratorDescriptor.cs
- RuleSetReference.cs