nn::nex::DirectTransport::RegisterUserReceiveCallback Member Function

Syntax

void RegisterUserReceiveCallback(
     PRUDPUserReceiveCallback callback
);

Parameters

Name Description
in callback Specifies a pointer to the callback function.

Return Values

None.

Description

Registers the callback function that is called when data is received via the direct transport feature.

The data sent from other stations will be passed to this receive callback, regardless of whether it was sent via reliable or unreliable communications.
The registered callback function should conform to the following specification:

void UserReceiveCallback(StationID sourceId, qByte* buffer, qUnsignedInt32 size)
・sourceId: StationID of the sender
・buffer:
Pointer to received data
・size: Size of the received data.

If the receive callback function does not complete processing quickly, data reception may become unstable.

Revision History

2012/10/04
Changed the reception callback function parameter type from ConnectionID to StationID.
2012/01/26
Initial version.

CONFIDENTIAL