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
- Window.cs
- ScriptManager.cs
- ListBox.cs
- SmiRequestExecutor.cs
- SyndicationDeserializer.cs
- RegexCapture.cs
- ObjectAnimationUsingKeyFrames.cs
- DictionarySectionHandler.cs
- AnimationClockResource.cs
- CalculatedColumn.cs
- ExeConfigurationFileMap.cs
- VirtualPath.cs
- PermissionSetEnumerator.cs
- RelatedView.cs
- DesignTimeParseData.cs
- XmlNamespaceMappingCollection.cs
- CompositeActivityCodeGenerator.cs
- OdbcRowUpdatingEvent.cs
- UpdateTracker.cs
- SimpleColumnProvider.cs
- ConnectionManagementSection.cs
- ValidationPropertyAttribute.cs
- QueryableFilterRepeater.cs
- ExtensibleClassFactory.cs
- InternalConfigSettingsFactory.cs
- EventsTab.cs
- WebRequestModuleElementCollection.cs
- MetaModel.cs
- BitmapEditor.cs
- GeneralTransform3DGroup.cs
- StyleBamlTreeBuilder.cs
- CommonObjectSecurity.cs
- ProxyGenerator.cs
- ToolStrip.cs
- BamlWriter.cs
- CollectionContainer.cs
- IssuedTokensHeader.cs
- UserControlAutomationPeer.cs
- TrackingMemoryStreamFactory.cs
- WsatConfiguration.cs
- URLString.cs
- Contracts.cs
- BCryptNative.cs
- DesigntimeLicenseContext.cs
- MenuCommand.cs
- ItemsPanelTemplate.cs
- ScriptingRoleServiceSection.cs
- Polyline.cs
- SoapHeaderAttribute.cs
- ListBoxDesigner.cs
- MSAANativeProvider.cs
- HttpCacheParams.cs
- StringResourceManager.cs
- SslStream.cs
- _NetworkingPerfCounters.cs
- MultipartContentParser.cs
- ContextDataSource.cs
- QilLoop.cs
- MultiSelectRootGridEntry.cs
- DoubleLinkList.cs
- RightsManagementManager.cs
- SqlWebEventProvider.cs
- WindowCollection.cs
- CharEnumerator.cs
- ApplicationInterop.cs
- InputQueueChannel.cs
- GeneralTransformCollection.cs
- WebServiceMethodData.cs
- RequestQueryProcessor.cs
- EntityDataSourceWrapper.cs
- MarkupCompiler.cs
- WindowsAltTab.cs
- DataShape.cs
- ApplicationGesture.cs
- ResourceDictionaryCollection.cs
- SafeBitVector32.cs
- CodeNamespace.cs
- SelectedDatesCollection.cs
- SplashScreenNativeMethods.cs
- MethodToken.cs
- WebPartsPersonalization.cs
- ScrollData.cs
- DoubleLinkList.cs
- HtmlTable.cs
- MouseActionValueSerializer.cs
- Model3DGroup.cs
- AllMembershipCondition.cs
- TemplateNameScope.cs
- NodeInfo.cs
- EntityClientCacheEntry.cs
- xmlformatgeneratorstatics.cs
- ServiceMemoryGates.cs
- ToolStripPanelSelectionBehavior.cs
- Point4D.cs
- CellParaClient.cs
- ContentDisposition.cs
- BitmapScalingModeValidation.cs
- ReflectTypeDescriptionProvider.cs
- OverflowException.cs
- MulticastNotSupportedException.cs