gt2GetLastSentMessageID

GameSpy SDK

gt2GetLastSentMessageID

Gets the message id for the last reliably sent message. Unreliable messages do not have an id.

GT2MessageIDĀ gt2GetLastSentMessageID(
GT2Connection connection );
RoutineRequired HeaderDistribution
gt2GetLastSentMessageID<gt2.h>SDKZIP

Return Value

The message ID of the last reliably sent message.

Parameters

connection
[in] The handle to the connection.

Remarks

This should be called immediately after gt2Send. Waiting until after a call to gt2Think can result in an invalid message id being returned. Note that the use of filters that can either drop or delay messages can complicate the process, because in those cases a call to gt2Send does not guarantee that a message will actually be sent. In those cases, gt2GetLastSentMessageID should be called after gt2FilteredSend, because the actual message will be sent from within that function.

Section Reference: Gamespy Transport SDK

See Also: gt2WasMessageIDConfirmed