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
- XmlSchemaAll.cs
- SoapParser.cs
- Button.cs
- StringResourceManager.cs
- AvTraceDetails.cs
- TextViewSelectionProcessor.cs
- DataGridViewCellMouseEventArgs.cs
- PixelShader.cs
- TabletDeviceInfo.cs
- PointLightBase.cs
- SmtpFailedRecipientsException.cs
- OraclePermission.cs
- StorageInfo.cs
- WebSysDefaultValueAttribute.cs
- BamlBinaryReader.cs
- MetadataPropertyvalue.cs
- DeploymentSectionCache.cs
- BindingContext.cs
- GroupBoxRenderer.cs
- ValidationEventArgs.cs
- NodeInfo.cs
- UnmanagedMarshal.cs
- InvariantComparer.cs
- AsynchronousChannelMergeEnumerator.cs
- ToolStripOverflowButton.cs
- TransformerInfo.cs
- LicenseProviderAttribute.cs
- Utilities.cs
- TableItemStyle.cs
- ObjectViewEntityCollectionData.cs
- BuildResult.cs
- ExpressionWriter.cs
- ContainerActivationHelper.cs
- EventLogPermissionEntry.cs
- ChangesetResponse.cs
- FileVersionInfo.cs
- TouchPoint.cs
- StrokeSerializer.cs
- Base64Decoder.cs
- LocalClientSecuritySettings.cs
- ResXResourceWriter.cs
- PrinterUnitConvert.cs
- SelectionProviderWrapper.cs
- DBDataPermission.cs
- GraphicsContainer.cs
- LogManagementAsyncResult.cs
- IdnElement.cs
- XsltArgumentList.cs
- XmlSchemaComplexContentRestriction.cs
- StatusStrip.cs
- StringStorage.cs
- TypedReference.cs
- ListItemParagraph.cs
- ConfigurationValidatorBase.cs
- UIHelper.cs
- ZipIOExtraField.cs
- UniqueSet.cs
- PackWebRequest.cs
- SyntaxCheck.cs
- ProtocolReflector.cs
- TreeViewImageGenerator.cs
- Font.cs
- TableRow.cs
- FixedPage.cs
- GenericsInstances.cs
- documentsequencetextpointer.cs
- ConditionCollection.cs
- WebResourceAttribute.cs
- SafeHandles.cs
- StrongBox.cs
- Typography.cs
- DataTemplateSelector.cs
- CodeParameterDeclarationExpression.cs
- DbConnectionFactory.cs
- SoapReflectionImporter.cs
- SessionStateModule.cs
- HttpListenerPrefixCollection.cs
- shaperfactoryquerycachekey.cs
- ChannelRequirements.cs
- TimeoutTimer.cs
- WebPartsPersonalizationAuthorization.cs
- DataGridViewButtonCell.cs
- AnnotationComponentManager.cs
- DocumentPageHost.cs
- CompiledQuery.cs
- DefaultProxySection.cs
- FrugalList.cs
- SystemTcpStatistics.cs
- InstanceNotFoundException.cs
- FileLevelControlBuilderAttribute.cs
- PolicyUtility.cs
- FigureParagraph.cs
- TextTreeObjectNode.cs
- DataGrid.cs
- ConditionalBranch.cs
- FixedSOMSemanticBox.cs
- MexTcpBindingCollectionElement.cs
- controlskin.cs
- ILGenerator.cs
- AccessedThroughPropertyAttribute.cs