Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / NetworkInformation / SystemIcmpV4Statistics.cs / 1 / SystemIcmpV4Statistics.cs
////// namespace System.Net.NetworkInformation{ using System.Net.Sockets; using System; using System.ComponentModel; /// /// Provides support for ip configuation information and statistics. /// Icmp statistics for IPv4. internal class SystemIcmpV4Statistics:IcmpV4Statistics { MibIcmpInfo stats; internal SystemIcmpV4Statistics(){ uint result = UnsafeNetInfoNativeMethods.GetIcmpStatistics(out stats); if (result != IpHelperErrors.Success) { throw new NetworkInformationException((int)result); } } public override long MessagesSent{get {return stats.outStats.messages;}} public override long MessagesReceived{get {return stats.inStats.messages;}} public override long ErrorsSent{get {return stats.outStats.errors;}} public override long ErrorsReceived{get {return stats.inStats.errors;}} public override long DestinationUnreachableMessagesSent{get {return stats.outStats.destinationUnreachables;}} public override long DestinationUnreachableMessagesReceived{get {return stats.inStats.destinationUnreachables;}} public override long TimeExceededMessagesSent{get {return stats.outStats.timeExceeds;}} public override long TimeExceededMessagesReceived{get {return stats.inStats.timeExceeds;}} public override long ParameterProblemsSent{get {return stats.outStats.parameterProblems;}} public override long ParameterProblemsReceived{get {return stats.inStats.parameterProblems;}} public override long SourceQuenchesSent{get {return stats.outStats.sourceQuenches;}} public override long SourceQuenchesReceived{get {return stats.inStats.sourceQuenches;}} public override long RedirectsSent{get {return stats.outStats.redirects;}} public override long RedirectsReceived{get {return stats.inStats.redirects;}} public override long EchoRequestsSent{get {return stats.outStats.echoRequests;}} public override long EchoRequestsReceived{get {return stats.inStats.echoRequests;}} public override long EchoRepliesSent{get {return stats.outStats.echoReplies;}} public override long EchoRepliesReceived{get {return stats.inStats.echoReplies;}} public override long TimestampRequestsSent{get {return stats.outStats.timestampRequests;}} public override long TimestampRequestsReceived{get {return stats.inStats.timestampRequests;}} public override long TimestampRepliesSent{get {return stats.outStats.timestampReplies;}} public override long TimestampRepliesReceived{get {return stats.inStats.timestampReplies;}} public override long AddressMaskRequestsSent{get {return stats.outStats.addressMaskRequests;}} public override long AddressMaskRequestsReceived{get {return stats.inStats.addressMaskRequests;}} public override long AddressMaskRepliesSent{get {return stats.outStats.addressMaskReplies;}} public override long AddressMaskRepliesReceived{get {return stats.inStats.addressMaskReplies;}} } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FamilyMap.cs
- Random.cs
- RuntimeIdentifierPropertyAttribute.cs
- SiteMapSection.cs
- XmlQueryCardinality.cs
- IisTraceWebEventProvider.cs
- DefaultTraceListener.cs
- BreakSafeBase.cs
- ObjectPropertyMapping.cs
- DirectoryLocalQuery.cs
- DynamicResourceExtensionConverter.cs
- WebWorkflowRole.cs
- TimeoutHelper.cs
- RecognitionResult.cs
- StdRegProviderWrapper.cs
- TextTreeUndoUnit.cs
- PipelineModuleStepContainer.cs
- FuncCompletionCallbackWrapper.cs
- Propagator.Evaluator.cs
- ClipboardData.cs
- Misc.cs
- CollectionViewGroup.cs
- DataSet.cs
- ReferencedType.cs
- WebPartEventArgs.cs
- NameValueFileSectionHandler.cs
- TextContainerChangedEventArgs.cs
- ScalarConstant.cs
- Stopwatch.cs
- QueryOperationResponseOfT.cs
- ServiceAppDomainAssociationProvider.cs
- ReadWriteObjectLock.cs
- CellCreator.cs
- Geometry3D.cs
- HttpApplication.cs
- NumberAction.cs
- ComEventsHelper.cs
- UdpAnnouncementEndpoint.cs
- RuleInfoComparer.cs
- DeobfuscatingStream.cs
- GPPOINT.cs
- GridViewColumnCollectionChangedEventArgs.cs
- Path.cs
- DynamicResourceExtensionConverter.cs
- SingleObjectCollection.cs
- LineProperties.cs
- StreamedFramingRequestChannel.cs
- CqlIdentifiers.cs
- Mutex.cs
- XmlAnyAttributeAttribute.cs
- ProfilePropertySettingsCollection.cs
- WorkflowQueueInfo.cs
- DynamicQueryableWrapper.cs
- CodeSubDirectory.cs
- CounterSample.cs
- DocComment.cs
- FormsAuthenticationModule.cs
- TargetControlTypeAttribute.cs
- TextEffect.cs
- ProfileServiceManager.cs
- TypeDependencyAttribute.cs
- NotifyCollectionChangedEventArgs.cs
- XmlTextReaderImpl.cs
- DataColumnPropertyDescriptor.cs
- ToolboxItemWrapper.cs
- DesignTimeParseData.cs
- DataGridViewRow.cs
- TextEditorSpelling.cs
- TypeUnloadedException.cs
- ThreadExceptionDialog.cs
- CodeIndexerExpression.cs
- MimeFormReflector.cs
- SizeChangedEventArgs.cs
- TextTreeTextBlock.cs
- RoutedEvent.cs
- BezierSegment.cs
- XmlEncoding.cs
- DefaultValueConverter.cs
- FormsAuthenticationModule.cs
- CqlErrorHelper.cs
- DataDesignUtil.cs
- PageOrientation.cs
- PresentationAppDomainManager.cs
- RuleSettings.cs
- ListBoxItem.cs
- DbConnectionPoolCounters.cs
- Int16Storage.cs
- Vector3DValueSerializer.cs
- InvalidOleVariantTypeException.cs
- DocumentViewerBaseAutomationPeer.cs
- PointAnimationUsingPath.cs
- SqlSelectStatement.cs
- SoapSchemaImporter.cs
- ContextProperty.cs
- ResolvedKeyFrameEntry.cs
- ImplicitInputBrush.cs
- StickyNoteAnnotations.cs
- MimeMapping.cs
- CloudCollection.cs
- FlowLayoutSettings.cs