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
- InvariantComparer.cs
- XmlJsonReader.cs
- ControlDesigner.cs
- QuerySetOp.cs
- WindowInteractionStateTracker.cs
- ControlBindingsCollection.cs
- Vector.cs
- Image.cs
- ChangeConflicts.cs
- XmlTextReader.cs
- GridViewRowCollection.cs
- ClientConvert.cs
- LinkClickEvent.cs
- ZipIOLocalFileDataDescriptor.cs
- ByteStorage.cs
- Convert.cs
- wgx_commands.cs
- PopupControlService.cs
- CannotUnloadAppDomainException.cs
- BamlStream.cs
- SqlWriter.cs
- UnknownWrapper.cs
- RoutedEventArgs.cs
- WebCategoryAttribute.cs
- LoaderAllocator.cs
- Hashtable.cs
- DataReceivedEventArgs.cs
- IntSecurity.cs
- LinqExpressionNormalizer.cs
- ToolStripItemImageRenderEventArgs.cs
- Condition.cs
- XmlEventCache.cs
- SqlCommandAsyncResult.cs
- PlatformCulture.cs
- WrappedIUnknown.cs
- DataGridTextBox.cs
- InvalidateEvent.cs
- SerializationAttributes.cs
- DbConnectionStringBuilder.cs
- WindowsFormsHostAutomationPeer.cs
- MessageBox.cs
- XmlHierarchicalDataSourceView.cs
- NumericPagerField.cs
- _Events.cs
- SupportingTokenListenerFactory.cs
- SqlRetyper.cs
- xsdvalidator.cs
- X509Chain.cs
- AdPostCacheSubstitution.cs
- TableLayoutCellPaintEventArgs.cs
- PrePrepareMethodAttribute.cs
- Helpers.cs
- ExtensionSurface.cs
- InstanceCreationEditor.cs
- ZipIOLocalFileBlock.cs
- StringComparer.cs
- CqlParserHelpers.cs
- AuthenticationModulesSection.cs
- LiteralDesigner.cs
- StateRuntime.cs
- SecurityTokenRequirement.cs
- PhysicalFontFamily.cs
- CompModHelpers.cs
- TextDecorations.cs
- XmlReader.cs
- TerminateSequence.cs
- CodeObjectCreateExpression.cs
- Literal.cs
- RIPEMD160Managed.cs
- MenuItemStyle.cs
- GenericPrincipal.cs
- Stroke2.cs
- WebBrowserEvent.cs
- ToggleButton.cs
- ServicesExceptionNotHandledEventArgs.cs
- ViewgenGatekeeper.cs
- WebMessageEncoderFactory.cs
- XmlSchemaInclude.cs
- SystemMulticastIPAddressInformation.cs
- ProtectedConfiguration.cs
- DataBoundControlAdapter.cs
- WindowAutomationPeer.cs
- Win32NamedPipes.cs
- BatchStream.cs
- Helper.cs
- SmiSettersStream.cs
- CompletedAsyncResult.cs
- EntitySet.cs
- AdornerPresentationContext.cs
- PeerNameRegistration.cs
- _HeaderInfoTable.cs
- ColorAnimation.cs
- DecoderReplacementFallback.cs
- UpdateDelegates.Generated.cs
- BrowserInteropHelper.cs
- ProbeMatches11.cs
- DataGridViewCheckBoxCell.cs
- XmlElementAttributes.cs
- SQLDecimalStorage.cs
- DiagnosticSection.cs