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
- AvTraceFormat.cs
- CollectionDataContractAttribute.cs
- UpnEndpointIdentity.cs
- ObjectListComponentEditor.cs
- CustomActivityDesigner.cs
- TreeNode.cs
- Grant.cs
- ServiceCredentialsElement.cs
- EventEntry.cs
- ImmutableObjectAttribute.cs
- SecUtil.cs
- FloatUtil.cs
- EventSchemaTraceListener.cs
- ExpressionEvaluator.cs
- Cursors.cs
- Matrix.cs
- ALinqExpressionVisitor.cs
- TextSegment.cs
- EnterpriseServicesHelper.cs
- TextEditorContextMenu.cs
- Cloud.cs
- LOSFormatter.cs
- ImageSource.cs
- DBSchemaTable.cs
- Parameter.cs
- HandleDictionary.cs
- JumpList.cs
- UserControlAutomationPeer.cs
- ChineseLunisolarCalendar.cs
- ReadOnlyActivityGlyph.cs
- BitConverter.cs
- MediaContextNotificationWindow.cs
- IsolatedStorageException.cs
- RelationshipFixer.cs
- SoundPlayer.cs
- DbConvert.cs
- UIElement.cs
- MailDefinition.cs
- ImportCatalogPart.cs
- WindowsTokenRoleProvider.cs
- webclient.cs
- DataControlFieldCell.cs
- DrawListViewSubItemEventArgs.cs
- UserNameSecurityToken.cs
- StringSource.cs
- Events.cs
- CodeMemberMethod.cs
- SystemResourceHost.cs
- EndOfStreamException.cs
- DefaultIfEmptyQueryOperator.cs
- CustomErrorsSection.cs
- WebHeaderCollection.cs
- ReadOnlyPermissionSet.cs
- AlignmentYValidation.cs
- SystemInfo.cs
- ServiceHttpHandlerFactory.cs
- SignatureToken.cs
- RoleService.cs
- SqlNamer.cs
- XPathQueryGenerator.cs
- Assembly.cs
- Base64Decoder.cs
- DataTableTypeConverter.cs
- Thumb.cs
- ScriptManagerProxy.cs
- TypeCollectionDesigner.xaml.cs
- ResourceFallbackManager.cs
- InteropAutomationProvider.cs
- InfoCardArgumentException.cs
- UnsafeNativeMethodsMilCoreApi.cs
- ConnectionProviderAttribute.cs
- BrowserCapabilitiesFactory.cs
- ScriptingJsonSerializationSection.cs
- ApplicationFileCodeDomTreeGenerator.cs
- PartialList.cs
- SqlConnectionFactory.cs
- TimeoutException.cs
- Calendar.cs
- KeyValueConfigurationElement.cs
- WebControlsSection.cs
- RuntimeResourceSet.cs
- CheckBoxList.cs
- PenContexts.cs
- UnitySerializationHolder.cs
- ControlDesigner.cs
- SimpleType.cs
- VectorAnimation.cs
- ChangeBlockUndoRecord.cs
- ClientApiGenerator.cs
- OdbcCommand.cs
- RSAProtectedConfigurationProvider.cs
- RefreshEventArgs.cs
- TextServicesDisplayAttribute.cs
- HandlerFactoryWrapper.cs
- ErrorLog.cs
- DataSourceSelectArguments.cs
- TransformConverter.cs
- TextEditorTyping.cs
- PageRouteHandler.cs
- SpotLight.cs