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
- HyperLinkColumn.cs
- TableItemPatternIdentifiers.cs
- EventTrigger.cs
- ChangeNode.cs
- UserControl.cs
- LineInfo.cs
- AssemblyHash.cs
- SerializationFieldInfo.cs
- SvcMapFileLoader.cs
- SBCSCodePageEncoding.cs
- HttpCookie.cs
- DataGridBoundColumn.cs
- IISMapPath.cs
- DBConnectionString.cs
- NameValueConfigurationElement.cs
- DetailsViewPagerRow.cs
- Quaternion.cs
- QueryReaderSettings.cs
- DesignerAttribute.cs
- BoundField.cs
- HandlerFactoryWrapper.cs
- Utility.cs
- IPAddressCollection.cs
- GestureRecognizer.cs
- DataContractSerializerOperationBehavior.cs
- storepermissionattribute.cs
- AsyncInvokeContext.cs
- RangeValuePatternIdentifiers.cs
- BaseResourcesBuildProvider.cs
- recordstatescratchpad.cs
- DesignerVerb.cs
- String.cs
- Listbox.cs
- BufferedWebEventProvider.cs
- oledbconnectionstring.cs
- VoiceInfo.cs
- ValueConversionAttribute.cs
- StructuredTypeEmitter.cs
- ManagementEventArgs.cs
- DbConnectionStringCommon.cs
- RowUpdatedEventArgs.cs
- ProfileProvider.cs
- RawKeyboardInputReport.cs
- SoapTypeAttribute.cs
- CurrentTimeZone.cs
- SeverityFilter.cs
- Rfc2898DeriveBytes.cs
- CompilerParameters.cs
- MergeExecutor.cs
- MailHeaderInfo.cs
- TagPrefixInfo.cs
- ToolStripItemTextRenderEventArgs.cs
- ContainerParagraph.cs
- SettingsPropertyValue.cs
- Event.cs
- EntitySetDataBindingList.cs
- HotSpot.cs
- XmlHierarchyData.cs
- SoapAttributes.cs
- LateBoundBitmapDecoder.cs
- AdRotatorDesigner.cs
- UserMapPath.cs
- SqlXmlStorage.cs
- RoutedEventConverter.cs
- AnnotationAdorner.cs
- RSACryptoServiceProvider.cs
- ObjectDataSource.cs
- ImportCatalogPart.cs
- xml.cs
- AssertFilter.cs
- ImageUrlEditor.cs
- DynamicValueConverter.cs
- ContentDisposition.cs
- BaseParaClient.cs
- StreamMarshaler.cs
- _ConnectionGroup.cs
- objectresult_tresulttype.cs
- TypeRestriction.cs
- GuidTagList.cs
- XPathMultyIterator.cs
- Group.cs
- EntityParameterCollection.cs
- storepermission.cs
- ProviderUtil.cs
- DataPagerFieldCommandEventArgs.cs
- CqlBlock.cs
- QueryAccessibilityHelpEvent.cs
- InputDevice.cs
- SubpageParagraph.cs
- SocketException.cs
- JoinTreeNode.cs
- CngKeyBlobFormat.cs
- ObjectAnimationBase.cs
- LocationUpdates.cs
- HttpPostProtocolReflector.cs
- SignatureGenerator.cs
- RenderTargetBitmap.cs
- DataBinding.cs
- SQLSingleStorage.cs
- basecomparevalidator.cs