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
- SerializationAttributes.cs
- XmlIterators.cs
- IPEndPointCollection.cs
- SoapInteropTypes.cs
- OleDbMetaDataFactory.cs
- LedgerEntryCollection.cs
- CorrelationResolver.cs
- ResizeGrip.cs
- ConnectionStringsSection.cs
- PointHitTestResult.cs
- TripleDESCryptoServiceProvider.cs
- WebBrowserContainer.cs
- SettingsPropertyIsReadOnlyException.cs
- ElementHostAutomationPeer.cs
- SourceItem.cs
- MailDefinition.cs
- Action.cs
- PolicyStatement.cs
- MethodImplAttribute.cs
- TextRangeBase.cs
- DataGridRowEventArgs.cs
- ArglessEventHandlerProxy.cs
- ConfigurationValue.cs
- InvalidPrinterException.cs
- FormatterServices.cs
- FixedSOMTableCell.cs
- StdValidatorsAndConverters.cs
- DebugControllerThread.cs
- CalendarDataBindingHandler.cs
- TreeViewHitTestInfo.cs
- SQLCharsStorage.cs
- DBCSCodePageEncoding.cs
- CacheHelper.cs
- DataGridViewRowCancelEventArgs.cs
- XmlAttributes.cs
- ItemCollection.cs
- SafeFileMappingHandle.cs
- DefaultValidator.cs
- CookieParameter.cs
- ArgumentsParser.cs
- CoTaskMemSafeHandle.cs
- ServiceProviders.cs
- DependencyObjectType.cs
- WCFModelStrings.Designer.cs
- DictionaryContent.cs
- MimeParameterWriter.cs
- ColorPalette.cs
- FindCriteriaElement.cs
- TemplateBaseAction.cs
- DbConnectionPoolCounters.cs
- sortedlist.cs
- _SslStream.cs
- _NegoState.cs
- PeerApplication.cs
- ProxyElement.cs
- AQNBuilder.cs
- PrintDialog.cs
- CompressedStack.cs
- SmtpMail.cs
- ThreadExceptionEvent.cs
- SuppressMessageAttribute.cs
- HyperLinkStyle.cs
- ProfileService.cs
- TableLayoutColumnStyleCollection.cs
- CodeStatement.cs
- FrameworkContextData.cs
- DataGridViewButtonColumn.cs
- CrossSiteScriptingValidation.cs
- ConfigurationManagerInternalFactory.cs
- Exception.cs
- QilList.cs
- PiiTraceSource.cs
- SqlNamer.cs
- SendMailErrorEventArgs.cs
- CollectionBase.cs
- AssertFilter.cs
- UIPropertyMetadata.cs
- AnnotationResource.cs
- Configuration.cs
- StringComparer.cs
- JournalEntryListConverter.cs
- WorkflowMarkupSerializerMapping.cs
- XmlIncludeAttribute.cs
- StopRoutingHandler.cs
- TreeNodeCollection.cs
- TagMapInfo.cs
- DbConnectionClosed.cs
- CacheAxisQuery.cs
- BitVec.cs
- shaperfactory.cs
- TextServicesDisplayAttributePropertyRanges.cs
- PartitionResolver.cs
- FileVersion.cs
- LambdaCompiler.Lambda.cs
- CommonDialog.cs
- SQLByteStorage.cs
- WindowsGraphicsCacheManager.cs
- CutCopyPasteHelper.cs
- TemplatePropertyEntry.cs
- SoapFault.cs