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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CheckPair.cs
- WebPermission.cs
- ScrollBar.cs
- BuildProvider.cs
- ManipulationPivot.cs
- DrawListViewItemEventArgs.cs
- WindowsStartMenu.cs
- ExpandedWrapper.cs
- KnownTypesProvider.cs
- FixedDocumentPaginator.cs
- TextTabProperties.cs
- CommandCollectionEditor.cs
- x509store.cs
- PopupRoot.cs
- FamilyTypeface.cs
- TreeViewImageKeyConverter.cs
- NameValuePermission.cs
- MobileControl.cs
- Brush.cs
- HtmlAnchor.cs
- InvalidOleVariantTypeException.cs
- PeerInvitationResponse.cs
- ValueProviderWrapper.cs
- XmlWrappingReader.cs
- SkewTransform.cs
- WinFormsUtils.cs
- XmlSerializerAssemblyAttribute.cs
- RIPEMD160Managed.cs
- UnsafeNativeMethods.cs
- NameSpaceExtractor.cs
- TargetPerspective.cs
- SmiMetaData.cs
- ImageList.cs
- ComplexType.cs
- ServiceOperationParameter.cs
- ItemCheckedEvent.cs
- Clock.cs
- HebrewNumber.cs
- WindowInteropHelper.cs
- BindingElementExtensionElement.cs
- WindowsHyperlink.cs
- XmlWrappingReader.cs
- BorderGapMaskConverter.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- ObjectAnimationBase.cs
- CodeCompileUnit.cs
- WebPartConnectVerb.cs
- ButtonStandardAdapter.cs
- WebMessageBodyStyleHelper.cs
- DataColumnMappingCollection.cs
- TextComposition.cs
- XmlC14NWriter.cs
- XPathMultyIterator.cs
- PhysicalAddress.cs
- PersonalizationStateInfo.cs
- ConfigurationManagerHelperFactory.cs
- IpcChannel.cs
- ContentDefinition.cs
- DataSourceCollectionBase.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- UpdatePanelControlTrigger.cs
- Operand.cs
- XamlParser.cs
- CurrentTimeZone.cs
- SearchForVirtualItemEventArgs.cs
- odbcmetadatacolumnnames.cs
- ObjectQueryState.cs
- TableSectionStyle.cs
- Synchronization.cs
- DrawingCollection.cs
- DetailsViewDeleteEventArgs.cs
- BindingElementExtensionElement.cs
- CheckBoxPopupAdapter.cs
- XmlDataSourceNodeDescriptor.cs
- ItemCheckedEvent.cs
- MsdtcClusterUtils.cs
- LinkedList.cs
- ScalarConstant.cs
- SQLChars.cs
- SmtpNtlmAuthenticationModule.cs
- DropSource.cs
- XmlCountingReader.cs
- RemotingConfiguration.cs
- StorageMappingItemLoader.cs
- XPathAxisIterator.cs
- bindurihelper.cs
- SHA256Cng.cs
- XmlParserContext.cs
- EnumConverter.cs
- CqlParserHelpers.cs
- Section.cs
- Lease.cs
- XPathNode.cs
- ModifiableIteratorCollection.cs
- TextDecorationLocationValidation.cs
- HMAC.cs
- AffineTransform3D.cs
- State.cs
- ReadWriteObjectLock.cs
- DBCSCodePageEncoding.cs