chatDisconnected
Called when a disconnection occurs.
- typedef void (*chatDisconnected)(
- CHAT chat,
- const gsi_char * reason,
- void * param );
Routine | Required Header | Distribution |
---|---|---|
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
Routine | GSI_UNICODE Not Defined | GSI_UNICODE Defined |
---|---|---|
chatDisconnected | chatDisconnectedA | chatDisconnectedW |
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