Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / NetworkInformation / SystemTcpStatistics.cs / 1305376 / 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;}} } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ServiceProviders.cs
- ScriptResourceHandler.cs
- CheckBoxList.cs
- SmtpException.cs
- InterleavedZipPartStream.cs
- MembershipAdapter.cs
- MergeExecutor.cs
- URL.cs
- ImageMap.cs
- CopyNodeSetAction.cs
- ParallelTimeline.cs
- DBConnectionString.cs
- QueryOutputWriter.cs
- ArraySet.cs
- IApplicationTrustManager.cs
- DefaultCompensation.cs
- HtmlProps.cs
- LinkLabel.cs
- FilteredAttributeCollection.cs
- _DisconnectOverlappedAsyncResult.cs
- LicenseException.cs
- XomlCompilerHelpers.cs
- LinkLabel.cs
- Predicate.cs
- WorkflowInstanceContextProvider.cs
- RepeatButton.cs
- UnaryNode.cs
- TabControl.cs
- EntityTypeBase.cs
- NeedSkipTokenVisitor.cs
- ReflectionUtil.cs
- PerformanceCounterPermissionEntry.cs
- ElementNotAvailableException.cs
- KnownColorTable.cs
- BindingElementExtensionElement.cs
- ServiceContractDetailViewControl.cs
- ScriptControlManager.cs
- StylusPlugin.cs
- SinglePageViewer.cs
- MemoryMappedViewAccessor.cs
- EventLogPermission.cs
- InvalidContentTypeException.cs
- SqlRewriteScalarSubqueries.cs
- ColorContextHelper.cs
- FixedSOMImage.cs
- StylusPlugin.cs
- WinEventTracker.cs
- ClientSettingsStore.cs
- IListConverters.cs
- TableLayoutColumnStyleCollection.cs
- HttpHandlerAction.cs
- EditingCoordinator.cs
- HttpConfigurationContext.cs
- BoundsDrawingContextWalker.cs
- DocumentXmlWriter.cs
- TypeToken.cs
- HTMLTagNameToTypeMapper.cs
- CacheDependency.cs
- HitTestWithGeometryDrawingContextWalker.cs
- PrintPreviewDialog.cs
- SqlDataSourceSelectingEventArgs.cs
- WebServiceErrorEvent.cs
- DataGridViewColumnTypeEditor.cs
- ArrayTypeMismatchException.cs
- UserCancellationException.cs
- PropertyEntry.cs
- WebPartDisplayModeCancelEventArgs.cs
- BitmapEffectrendercontext.cs
- NullableBoolConverter.cs
- ZipIOBlockManager.cs
- MdImport.cs
- LogSwitch.cs
- FileUpload.cs
- graph.cs
- ReflectEventDescriptor.cs
- TypeSystemProvider.cs
- SoapCommonClasses.cs
- MatrixConverter.cs
- EventSinkHelperWriter.cs
- PropertyGroupDescription.cs
- _ServiceNameStore.cs
- DataServiceEntityAttribute.cs
- DelegateInArgument.cs
- ConfigXmlWhitespace.cs
- IconHelper.cs
- HuffmanTree.cs
- ValidateNames.cs
- CompilationSection.cs
- UpdateExpressionVisitor.cs
- EasingFunctionBase.cs
- DragCompletedEventArgs.cs
- ClientScriptItem.cs
- DataListCommandEventArgs.cs
- CodeSnippetTypeMember.cs
- SymbolEqualComparer.cs
- ProfileSection.cs
- FixUpCollection.cs
- ObjectDataSourceEventArgs.cs
- ToolBarButtonClickEvent.cs
- BulletedListEventArgs.cs