Mac Developer Library

Developer

IONetworkData.h Reference

Options
Deployment Target:

On This Page

IONetworkData.h Reference

Included Headers

  • <libkern/c++/OSSymbol.h>

  • <libkern/c++/OSSerialize.h>

Constants

See the Overview section above for header-level documentation.

  • Declaration

    Objective-C

    #define kIONetworkDataAccessTypes "Access Types" #define kIONetworkDataBasicAccessTypes \ (kIONetworkDataAccessTypeRead | kIONetworkDataAccessTypeSerialize) #define kIONetworkDataBytes "Data" #define kIONetworkDataSize "Size"

    Constants

    • kIONetworkDataAccessTypes

      kIONetworkDataAccessTypes

      A property of IONetworkData objects.

      The kIONetworkDataAccessTypes property is an OSNumber that describes the supported access types of an IONetworkData object.

      Available in OS X v10.0 and later.

    • kIONetworkDataBasicAccessTypes

      kIONetworkDataBasicAccessTypes

      The default access types supported by an IONetworkData object. Allow read() and serialize().

      Available in OS X v10.0 and later.

    • kIONetworkDataBytes

      kIONetworkDataBytes

      A property of IONetworkData objects.

      The kIONetworkDataBytes property is an OSData that describes the data buffer of an IONetworkData object. This property is present only if kIONetworkDataAccessTypeSerialize access is supported.

      Available in OS X v10.0 and later.

    • kIONetworkDataSize

      kIONetworkDataSize

      A property of IONetworkData objects.

      The kIONetworkDataSize property is an OSNumber that describes the size of the data buffer of an IONetworkData object.

      Available in OS X v10.0 and later.

  • Constants that describe access types.

    Declaration

    Objective-C

    enum { kIONetworkDataAccessTypeRead = 0x01, kIONetworkDataAccessTypeWrite = 0x02, kIONetworkDataAccessTypeReset = 0x04, kIONetworkDataAccessTypeSerialize = 0x08, kIONetworkDataAccessTypeMask = 0xff };

    Constants

    • kIONetworkDataAccessTypeRead

      kIONetworkDataAccessTypeRead

      Read access.

      Available in OS X v10.0 and later.

    • kIONetworkDataAccessTypeWrite

      kIONetworkDataAccessTypeWrite

      Write access.

      Available in OS X v10.0 and later.

    • kIONetworkDataAccessTypeReset

      kIONetworkDataAccessTypeReset

      Reset access.

      Available in OS X v10.0 and later.

    • kIONetworkDataAccessTypeSerialize

      kIONetworkDataAccessTypeSerialize

      Serialization access.

      Available in OS X v10.0 and later.

  • The types of data buffers that can be managed by an IONetworkData object.

    Declaration

    Objective-C

    enum { kIONetworkDataBufferTypeInternal = 0, kIONetworkDataBufferTypeExternal, kIONetworkDataBufferTypeNone };

    Constants

    • kIONetworkDataBufferTypeInternal

      kIONetworkDataBufferTypeInternal

      An internal data buffer allocated by the init() method.

      Available in OS X v10.0 and later.

    • kIONetworkDataBufferTypeExternal

      kIONetworkDataBufferTypeExternal

      An external (persistent) data buffer.

      Available in OS X v10.0 and later.

    • kIONetworkDataBufferTypeNone

      kIONetworkDataBufferTypeNone

      No data buffer. The only useful action perfomed by an IONetworkData object with this buffer type is to call the access notification handler.

      Available in OS X v10.0 and later.