chatDisconnected

GameSpy SDK

chatDisconnected

Called when a disconnection occurs.

typedef void (*chatDisconnected)(
CHAT chat,
const gsi_char * reason,
void * param );
RoutineRequired HeaderDistribution
chatDisconnected<chat.h>SDKZIP

Parameters

chat
[in] The initialized chat interface object.
reason
[in] The text string which states the reason for disconnect
param
[in] Pointer to user data. The same param that was passed to chatConnect through the callback structure.

Remarks

The chatDisconnected callback function is called after a disconnection occurs. The connection can be ended at any time by called chatDisconnect(). If the connection gets disconnected for any other reason (such as an intermediate router going down), the chatDisconnected() callback will be called.

Unicode Mappings

RoutineGSI_UNICODE Not DefinedGSI_UNICODE Defined
chatDisconnectedchatDisconnectedAchatDisconnectedW

chatDisconnectedW and chatDisconnectedA are UNICODE and ANSI mapped versions of chatDisconnected. The arguments of chatDisconnectedA are ANSI strings; those of chatDisconnectedW are wide-character strings.

Section Reference: Gamespy Chat SDK