Code:
/ FX-1434 / FX-1434 / 1.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
- FamilyCollection.cs
- securitymgrsite.cs
- NonBatchDirectoryCompiler.cs
- FixedPage.cs
- Attributes.cs
- WebPartVerb.cs
- DataStreams.cs
- AdPostCacheSubstitution.cs
- Scanner.cs
- WebRequest.cs
- SspiHelper.cs
- SafeTimerHandle.cs
- GeneralTransform3D.cs
- SupportsEventValidationAttribute.cs
- BuildDependencySet.cs
- ClonableStack.cs
- Helpers.cs
- DrawingVisual.cs
- DateTimeValueSerializer.cs
- XmlBinaryReaderSession.cs
- ReachDocumentPageSerializer.cs
- PageParser.cs
- SymbolMethod.cs
- Facet.cs
- Invariant.cs
- XamlTypeMapper.cs
- DeviceSpecificDialogCachedState.cs
- IPEndPointCollection.cs
- Configuration.cs
- LoginNameDesigner.cs
- GeneralTransform3D.cs
- XmlSchemaAttributeGroup.cs
- COAUTHINFO.cs
- SoapHeaderAttribute.cs
- PolicyStatement.cs
- HttpModuleAction.cs
- ResourceExpression.cs
- XmlBinaryWriterSession.cs
- FullTextBreakpoint.cs
- XmlTextReaderImplHelpers.cs
- ClientTarget.cs
- HttpWebRequest.cs
- followingquery.cs
- XmlName.cs
- ValuePattern.cs
- GridViewCellAutomationPeer.cs
- FileEnumerator.cs
- CheckPair.cs
- KeyValueInternalCollection.cs
- StatusBarPanel.cs
- SQLCharsStorage.cs
- TransformerConfigurationWizardBase.cs
- WebPartConnectionsCloseVerb.cs
- TextWriter.cs
- XamlReaderConstants.cs
- IOThreadScheduler.cs
- InputBinding.cs
- AbstractSvcMapFileLoader.cs
- XmlSchemaExporter.cs
- XmlUnspecifiedAttribute.cs
- Duration.cs
- NetNamedPipeSecurity.cs
- ThemeDictionaryExtension.cs
- HttpHandlersSection.cs
- TrustManagerPromptUI.cs
- ScrollEvent.cs
- BinaryParser.cs
- SerializationAttributes.cs
- ApplicationServiceHelper.cs
- Rect3D.cs
- XmlCharCheckingReader.cs
- CodeParameterDeclarationExpression.cs
- CodeTypeParameterCollection.cs
- x509store.cs
- hebrewshape.cs
- ChannelManager.cs
- SweepDirectionValidation.cs
- AdapterUtil.cs
- RevocationPoint.cs
- XmlSchemaAnnotated.cs
- Separator.cs
- DbSourceCommand.cs
- XslTransform.cs
- TypeSource.cs
- BindableTemplateBuilder.cs
- returneventsaver.cs
- Drawing.cs
- RequestCachingSection.cs
- HttpCachePolicy.cs
- Registry.cs
- SerialReceived.cs
- ReadingWritingEntityEventArgs.cs
- PanelDesigner.cs
- SQLBoolean.cs
- EntityKey.cs
- DefaultParameterValueAttribute.cs
- TextBoxLine.cs
- WCFModelStrings.Designer.cs
- ChannelSinkStacks.cs
- GradientBrush.cs