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
- ComponentChangingEvent.cs
- SlipBehavior.cs
- SendKeys.cs
- FormatSelectingMessageInspector.cs
- WebContext.cs
- ResourceWriter.cs
- FilterQueryOptionExpression.cs
- UTF32Encoding.cs
- LocatorGroup.cs
- DataTableExtensions.cs
- AppSettingsReader.cs
- ProfilePropertySettingsCollection.cs
- AdapterUtil.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- BaseValidatorDesigner.cs
- DataTableNewRowEvent.cs
- XmlTextWriter.cs
- ParameterCollection.cs
- ImageSourceConverter.cs
- ThemeDictionaryExtension.cs
- TiffBitmapDecoder.cs
- SoapAttributes.cs
- UInt16.cs
- IdentityHolder.cs
- DrawListViewSubItemEventArgs.cs
- QilPatternVisitor.cs
- IgnoreFileBuildProvider.cs
- RenameRuleObjectDialog.Designer.cs
- TemplatedMailWebEventProvider.cs
- autovalidator.cs
- ProgressiveCrcCalculatingStream.cs
- TreeNodeCollection.cs
- SafeMarshalContext.cs
- UIServiceHelper.cs
- PlanCompilerUtil.cs
- _ListenerResponseStream.cs
- ToolboxDataAttribute.cs
- FastEncoder.cs
- SubtreeProcessor.cs
- DataErrorValidationRule.cs
- HttpListenerResponse.cs
- HtmlInputFile.cs
- VScrollBar.cs
- ToolStripSeparator.cs
- RuleSetReference.cs
- InputLanguage.cs
- MenuItemAutomationPeer.cs
- CommandEventArgs.cs
- CompositeFontParser.cs
- CqlLexer.cs
- DocumentSchemaValidator.cs
- TemplateControlBuildProvider.cs
- DrawingImage.cs
- _emptywebproxy.cs
- DesignerVerb.cs
- CaseInsensitiveHashCodeProvider.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- BaseProcessProtocolHandler.cs
- ResolveNameEventArgs.cs
- DispatchChannelSink.cs
- ExpandableObjectConverter.cs
- FormViewPageEventArgs.cs
- TableLayoutPanelDesigner.cs
- TypeContext.cs
- CssStyleCollection.cs
- TableLayout.cs
- DesignerLoader.cs
- HMACSHA1.cs
- OperationExecutionFault.cs
- UpdateRecord.cs
- WebException.cs
- XmlWrappingReader.cs
- ActiveXContainer.cs
- XhtmlBasicSelectionListAdapter.cs
- SafeCryptContextHandle.cs
- UserControlAutomationPeer.cs
- LineMetrics.cs
- SimpleApplicationHost.cs
- JavaScriptString.cs
- ArglessEventHandlerProxy.cs
- TokenBasedSet.cs
- ProfileModule.cs
- CodeTypeReference.cs
- QueryRewriter.cs
- CalendarSelectionChangedEventArgs.cs
- HyperLink.cs
- SqlProviderManifest.cs
- GridViewSortEventArgs.cs
- GenericsInstances.cs
- Style.cs
- DrawingAttributeSerializer.cs
- UrlParameterWriter.cs
- ResourceManager.cs
- SpinLock.cs
- CLSCompliantAttribute.cs
- DbDataSourceEnumerator.cs
- LinearKeyFrames.cs
- TemplateControlParser.cs
- DbgCompiler.cs
- TimeZoneInfo.cs