gt2FilteredSend

GameSpy SDK

gt2FilteredSend

Called in response to a gt2SendFilterCallback being called. It can be called from within the callback, or at any later time.

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

Parameters

connection
[in] The handle to the connection.
filterID
[in] The ID passed to the gt2SendFilterCallback.
message
[in] The message that was sent. May be NULL.
len
[in] The length of the message in bytes. May be 0.
reliable
[in] True if this is a reliable message.

Remarks

Used to pass on a message after a filter callback has been called. This will cause the message to either be passed to the next filter or, if this was the last filter, to be sent. If this is called from the filter callback, the message passed in can be the same message that was passed into the callback. Note that the 7 byte header must be accounted for in the message if the function sends the message reliably.