void RegisterUserReceiveCallback( PRUDPUserReceiveCallback callback );
Name | Description | |
---|---|---|
in | callback | Specifies a pointer to the callback function. |
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)
Pointer to received data
・sourceId: StationID of the sender
・buffer:
・size: Size of the received data.
If the receive callback function does not complete processing quickly, data reception may become unstable.
ConnectionID
to StationID
.CONFIDENTIAL