gt2AddReceiveFilter
Adds a filter to the connection's incoming data filter list.
- GT2Bool gt2AddReceiveFilter(
- GT2Connection connection,
- gt2ReceiveFilterCallback callback );
Routine | Required Header | Distribution |
---|---|---|
gt2AddReceiveFilter | <gt2.h> | SDKZIP |
Return Value
Returns GT2False if there was an error adding the filter (due to no free memory).
Parameters
- connection
- [in] The handle to the connection.
- callback
- [in] The filtering callback.
Remarks
The callback will get called when a message is being received. Callbacks will be called in the order they were added to the connection's filter list.
Section Reference: Gamespy Transport SDK
See Also: gt2ReceiveFilterCallback, gt2RemoveReceiveFilter, gt2FilteredReceive