chatSendChannelMessage

GameSpy SDK

chatSendChannelMessage

Send a message to all members of the specified channel.

void chatSendChannelMessage(
CHAT chat,
const gsi_char * channel,
const gsi_char * message,
int type );
RoutineRequired HeaderDistribution
chatSendChannelMessage<chat.h>SDKZIP

Parameters

chat
[in] Chat SDK object, previously initialized using one of the chatConnect methods.
channel
[in] Name of the chat channel to which the message is being sent.
message
[in] Message.
type
[in] One of the predefined chat types. Used to send chat, hidden messages, notices, and other types.

Remarks

The chatSendChannelMessage function is used to send a message to all users of a specified channel. The type of message that may be sent can be chat, UTM, notices or actions.

Unicode Mappings

RoutineGSI_UNICODE Not DefinedGSI_UNICODE Defined
chatSendChannelMessagechatSendChannelMessageAchatSendChannelMessageW

chatSendChannelMessageW and chatSendChannelMessageA are UNICODE and ANSI mapped versions of chatSendChannelMessage. The arguments of chatSendChannelMessageA are ANSI strings; those of chatSendChannelMessageW are wide-character strings.

Section Reference: Gamespy Chat SDK