Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / NetworkInformation / SystemTcpStatistics.cs / 1 / SystemTcpStatistics.cs
////// namespace System.Net.NetworkInformation { using System.Net.Sockets; using System; using System.ComponentModel; /// /// Provides support for ip configuation information and statistics. /// Tcp specific statistics. internal class SystemTcpStatistics:TcpStatistics { MibTcpStats stats; private SystemTcpStatistics(){} internal SystemTcpStatistics(AddressFamily family){ uint result; if (!ComNetOS.IsPostWin2K){ if (family!= AddressFamily.InterNetwork){ throw new PlatformNotSupportedException(SR.GetString(SR.WinXPRequired)); } result = UnsafeNetInfoNativeMethods.GetTcpStatistics(out stats); } else result = UnsafeNetInfoNativeMethods.GetTcpStatisticsEx(out stats, family); if (result != IpHelperErrors.Success) { throw new NetworkInformationException((int)result); } } public override long MinimumTransmissionTimeout{get {return stats.minimumRetransmissionTimeOut;}} public override long MaximumTransmissionTimeout{get {return stats.maximumRetransmissionTimeOut;}} public override long MaximumConnections{get {return stats.maximumConnections;}} public override long ConnectionsInitiated{get {return stats.activeOpens;}} public override long ConnectionsAccepted{get {return stats.passiveOpens;}}// is this true? We should check public override long FailedConnectionAttempts{get {return stats.failedConnectionAttempts;}} public override long ResetConnections{get {return stats.resetConnections;}} public override long CurrentConnections{get {return stats.currentConnections;}} public override long SegmentsReceived{get {return stats.segmentsReceived;}} public override long SegmentsSent{get {return stats.segmentsSent;}} public override long SegmentsResent{get {return stats.segmentsResent;}} public override long ErrorsReceived{get {return stats.errorsReceived;}} public override long ResetsSent{get {return stats.segmentsSentWithReset;}} public override long CumulativeConnections{get {return stats.cumulativeConnections;}} } }
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TimeManager.cs
- DataGridViewRowsAddedEventArgs.cs
- ResXDataNode.cs
- UIElementParaClient.cs
- SwitchAttribute.cs
- DataGridGeneralPage.cs
- InstanceDataCollection.cs
- NativeCompoundFileAPIs.cs
- ControlCachePolicy.cs
- MultiplexingFormatMapping.cs
- DataSourceSerializationException.cs
- PseudoWebRequest.cs
- ClientSettings.cs
- NamedPermissionSet.cs
- SortedDictionary.cs
- DesignerOptionService.cs
- OracleBoolean.cs
- CodeCatchClause.cs
- RouteItem.cs
- BypassElement.cs
- XmlSchemaImporter.cs
- SqlDependency.cs
- PhysicalFontFamily.cs
- HtmlInputSubmit.cs
- ScrollChrome.cs
- ContentDesigner.cs
- ControllableStoryboardAction.cs
- DisableDpiAwarenessAttribute.cs
- GenericXmlSecurityTokenAuthenticator.cs
- UrlAuthorizationModule.cs
- ExpandCollapseProviderWrapper.cs
- ComboBox.cs
- TrackPointCollection.cs
- PrimitiveCodeDomSerializer.cs
- CalendarTable.cs
- WebPartZoneDesigner.cs
- CookieProtection.cs
- ZoomPercentageConverter.cs
- RectangleConverter.cs
- XPathSelectionIterator.cs
- TimeZone.cs
- ApplicationFileCodeDomTreeGenerator.cs
- FilterableData.cs
- RegexGroupCollection.cs
- ToolStripItemClickedEventArgs.cs
- MissingMethodException.cs
- AxisAngleRotation3D.cs
- TagPrefixAttribute.cs
- SafeFileMappingHandle.cs
- BitConverter.cs
- Compress.cs
- indexingfiltermarshaler.cs
- Point4D.cs
- OdbcConnectionHandle.cs
- EncoderReplacementFallback.cs
- PropertyItemInternal.cs
- ThreadSafeList.cs
- XPathDocumentNavigator.cs
- AssemblyInfo.cs
- IERequestCache.cs
- InstanceNormalEvent.cs
- tibetanshape.cs
- XmlSchemaComplexContentExtension.cs
- IgnoreFileBuildProvider.cs
- InstanceCompleteException.cs
- ReaderContextStackData.cs
- _FtpDataStream.cs
- ExtensionSimplifierMarkupObject.cs
- XmlSchemaAttribute.cs
- IndicShape.cs
- DataGridDetailsPresenter.cs
- RightsManagementEncryptionTransform.cs
- NativeMethods.cs
- SafeNativeMethods.cs
- CompositeFontFamily.cs
- EditCommandColumn.cs
- ApplicationHost.cs
- RawStylusInputCustomData.cs
- SafeNativeMethods.cs
- PageAdapter.cs
- XmlSchemaSimpleContentRestriction.cs
- XmlObjectSerializerContext.cs
- OdbcDataAdapter.cs
- _FtpControlStream.cs
- SiteOfOriginContainer.cs
- Query.cs
- UIAgentAsyncParams.cs
- EditorZoneDesigner.cs
- SafeNativeMethods.cs
- CacheDependency.cs
- ClientType.cs
- Exceptions.cs
- SoapMessage.cs
- JpegBitmapEncoder.cs
- ProviderIncompatibleException.cs
- ConnectionManagementSection.cs
- HttpListenerException.cs
- __Filters.cs
- InvalidPropValue.cs
- PropertyValidationContext.cs