Transport SDK Callbacks

GameSpy SDK

Transport SDK Callbacks

gt2ClosedCallback

This callback is called when the connection has been closed.

gt2ConnectAttemptCallback

This notifies the socket that a remote system is attempting a connection.

gt2ConnectedCallback

This callback is called when a connection attempt with gt2Connect finishes.

gt2DumpCallback

Called whenever data is sent or received over a socket.

gt2PingCallback

This callback is called when a response to a ping sent on this connection is received.

gt2ReceivedCallback

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

gt2ReceiveFilterCallback

Callback for filtering incoming data.

gt2SendFilterCallback

Callback for filtering outgoing data.

gt2SocketErrorCallback

This callback is used to notify the application of a closed socket or fatal socket error condition.

gt2UnrecognizedMessageCallback

This callback gets called when the sock receives a message that it cannot match to an existing connection.