chatFillInUserCallback

GameSpy SDK

chatFillInUserCallback

Used in conjuction with the chatConnectSpecial and chatConnectSecure functions; called to fill in the user field after the actual network connection to the chat server has been made.

typedef void (*chatFillInUserCallback)(
CHAT chat,
unsigned int IP,
gsi_char user[128],
void * param );
RoutineRequired HeaderDistribution
chatFillInUserCallback<chat.h>SDKZIP

Parameters

chat
[in] The initialized chat interface object.
IP
[in] The IP address in string form: "xxx.xxx.xxx.xxx" to encode
user
[in] The user name to encode
param
[in] Pointer to user data. The same param that was passed to chatConnectSecure or chatConnectSpecial.

Remarks

This is used by the Peer SDK to encode the local machine’s IP address (as known to the chat server) in the user field.

Unicode Mappings

RoutineGSI_UNICODE Not DefinedGSI_UNICODE Defined
chatFillInUserCallbackchatFillInUserCallbackAchatFillInUserCallbackW

chatFillInUserCallbackW and chatFillInUserCallbackA are UNICODE and ANSI mapped versions of chatFillInUserCallback. The arguments of chatFillInUserCallbackA are ANSI strings; those of chatFillInUserCallbackW are wide-character strings.