Contents

init

Initializes an IONetworkData object.

Declaration

virtual bool init(
 const char *name, 
 UInt32 bufferType, 
 UInt32 bufferSize, 
 void *externalBuffer = 0, 
 UInt32 accessTypes = (
 kIONetworkDataAccessTypeRead | kIONetworkDataAccessTypeSerialize), 
 void *target = 0, 
 Action action = 0, 
 void *param = 0);

Parameters

  • name:

    A name to assign to this object.

  • bufferType:

    The type of buffer associated with this object.

  • bufferSize:

    The size of the data buffer.

  • externalBuffer:

    Pointer to an external data buffer.

  • accessTypes:

    The initial supported access types. Can be later modified by calling setAccessTypes().

  • target:

    The notification target.

  • action:

    The notification action.

  • param:

    A parameter to pass to the notification action.

Return Value

Returns true if initialized successfully, false otherwise.

See Also

Miscellaneous