gt2ReceivedCallback

GameSpy SDK

gt2ReceivedCallback

This callback is called when a message is sent from the remote system with a gt2Send.

typedef void (*gt2ReceivedCallback)(
GT2Connection connection,
GT2Byte * message,
int len,
GT2Bool reliable );
RoutineRequired HeaderDistribution
gt2ReceivedCallback<gt2.h>SDKZIP

Parameters

connection
[in] The handle to the connection.
message
[in] The message that was sent. May be NULL.
len
[in] The length of the message. May be 0.
reliable
[in] GT2True if the message was sent reliably.

Remarks

If an message is sent from the remote end of the connection reliably, then it will always be received with this callback. If it is not sent reliably, then the message might not be received, it might be received out of order, or it might be received more than once (very rare).

Section Reference: Gamespy Transport SDK

See Also: gt2Send