gt2FilteredReceive

GameSpy SDK

gt2FilteredReceive

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

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

Parameters

connection
[in] The handle to the connection.
filterID
[in] The ID passed to the gt2ReceiveFilterCallback.
message
[in] The message that was received. 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 received. If this is called from the filter callback, the message passed in can be the same message that was passed into the callback.