Mac Developer Library

Developer

IONetworkStats.h Reference

Options
Deployment Target:

On This Page

IONetworkStats.h Reference

Generic network statistics.

Data Types

See the Overview section above for header-level documentation.

  • Declaration

    Objective-C

    typedef struct { UInt32 inputPackets; UInt32 inputErrors; UInt32 outputPackets; UInt32 outputErrors; UInt32 collisions; } IONetworkStats;

    Discussion

    Generic network statistics structure.

    Import Statement

    Availability

    Available in OS X v10.0 and later.

  • Declaration

    Objective-C

    typedef struct { UInt32 capacity; UInt32 size; UInt32 peakSize; UInt32 dropCount; UInt32 outputCount; UInt32 retryCount; UInt32 stallCount; UInt32 reserved[4]; } IOOutputQueueStats;

    Discussion

    Statistics recorded by IOOutputQueue objects.

    Import Statement

    Availability

    Available in OS X v10.0 and later.

Constants

See the Overview section above for header-level documentation.

  • Declaration

    Objective-C

    #define kIONetworkStatsKey "IONetworkStatsKey" #define kIOOutputQueueStatsKey "IOOutputQueueStatsKey"

    Constants

    • kIONetworkStatsKey

      kIONetworkStatsKey

      Defines the name of an IONetworkData that contains an IONetworkStats.

      Available in OS X v10.0 and later.

    • kIOOutputQueueStatsKey

      kIOOutputQueueStatsKey

      Defines the name of an IONetworkData that contains an IOOutputQueueStats.

      Available in OS X v10.0 and later.

    Import Statement