GT2ConnectionCallbacks

GameSpy SDK

GT2ConnectionCallbacks

Callbacks set for each connection.

typedef struct 
{
gt2ConnectedCallback connected;
gt2ReceivedCallback received;
gt2ClosedCallback closed;
gt2PingCallback ping;
} GT2ConnectionCallbacks;

Members

connected
Called when gt2Connect is complete.
received
Called when a message is received.
closed
Called when the connection is closed (remotely or locally).
ping
Called when a ping reply is received.

Section Reference: Gamespy Transport SDK