FS2_Open
Open source remastering of the Freespace 2 engine
|
#include "globalincs/pstypes.h"
#include "network/chat_api.h"
#include <winsock.h>
#include <stdio.h>
Go to the source code of this file.
Macros | |
#define | MAXCHATBUFFER 500 |
#define | SSIZE(x) (sizeof((x))) |
Typedefs | |
typedef int | socklen_t |
Functions | |
void | ChatInit (void) |
int | ConnectToChatServer (char *serveraddr, char *nickname, char *trackerid) |
void | DisconnectFromChatServer () |
char * | GetChatText () |
const char * | SendChatString (const char *line, int raw) |
Chat_command * | GetChatCommand () |
char * | GetChatUserList () |
int | SetNewChatChannel (char *channel) |
char * | ChatGetString (void) |
char * | GetWordNum (int num, const char *l_String) |
int | AddChatUser (char *nickname) |
int | RemoveChatUser (char *nickname) |
void | RemoveAllChatUsers (void) |
char * | ParseIRCMessage (char *Line, int iMode) |
void | AddChatCommandToQueue (int command, void *data, int len) |
Chat_command * | GetChatCommandFromQueue (void) |
void | FlushChatCommandQueue (void) |
void | FlushChannelList (void) |
char * | GetChannelList (void) |
void | AddChannel (char *channel, unsigned short numusers, char *topic) |
char * | GetTrackerIdByUser (char *nickname) |
char * | GetChannelByUser (char *nickname) |
Variables | |
SOCKET | Chatsock |
SOCKADDR_IN | Chataddr |
int | Socket_connecting = 0 |
char | Nick_name [33] |
char | Orignial_nick_name [33] |
int | Nick_variety = 0 |
char | szChat_channel [33] = "" |
char | Input_chat_buffer [MAXCHATBUFFER] = "" |
char | Chat_tracker_id [65] |
char | Getting_user_channel_info_for [33] = "" |
char | Getting_user_tracker_info_for [33] = "" |
int | Getting_user_channel_error = 0 |
int | Getting_user_tracker_error = 0 |
char | User_req_tracker_id [100] = "" |
char | User_req_channel [100] = "" |
char * | User_list = NULL |
char * | Chan_list = NULL |
int | Socket_connected = 0 |
int | Chat_server_connected = 0 |
int | Joining_channel = 0 |
int | Joined_channel = 0 |
int | GettingChannelList = 0 |
int | GettingUserTID = 0 |
int | GettingUserChannel = 0 |
Chat_user * | Firstuser |
Chat_user * | Curruser |
Chat_command * | Firstcommand |
Chat_command * | Currcommand |
Chat_channel * | Firstchannel |
Chat_channel * | Currchannel |
#define MAXCHATBUFFER 500 |
Definition at line 36 of file chat_api.cpp.
Definition at line 71 of file chat_api.cpp.
Definition at line 30 of file chat_api.cpp.
void AddChannel | ( | char * | channel, |
unsigned short | numusers, | ||
char * | topic | ||
) |
Definition at line 1239 of file chat_api.cpp.
Definition at line 1130 of file chat_api.cpp.
int AddChatUser | ( | char * | nickname | ) |
Definition at line 564 of file chat_api.cpp.
char* ChatGetString | ( | void | ) |
Definition at line 470 of file chat_api.cpp.
Definition at line 74 of file chat_api.cpp.
int ConnectToChatServer | ( | char * | serveraddr, |
char * | nickname, | ||
char * | trackerid | ||
) |
Definition at line 111 of file chat_api.cpp.
void DisconnectFromChatServer | ( | ) |
Call it to close the connection. It returns immediately
Definition at line 262 of file chat_api.cpp.
Definition at line 1184 of file chat_api.cpp.
Definition at line 1169 of file chat_api.cpp.
char* GetChannelByUser | ( | char * | nickname | ) |
Definition at line 1301 of file chat_api.cpp.
char* GetChannelList | ( | void | ) |
Definition at line 1199 of file chat_api.cpp.
Chat_command* GetChatCommand | ( | ) |
Definition at line 382 of file chat_api.cpp.
Chat_command* GetChatCommandFromQueue | ( | void | ) |
Definition at line 1156 of file chat_api.cpp.
char* GetChatText | ( | ) |
Definition at line 292 of file chat_api.cpp.
char* GetChatUserList | ( | ) |
Definition at line 391 of file chat_api.cpp.
char* GetTrackerIdByUser | ( | char * | nickname | ) |
Definition at line 1270 of file chat_api.cpp.
char* GetWordNum | ( | int | num, |
const char * | l_String | ||
) |
Definition at line 525 of file chat_api.cpp.
char* ParseIRCMessage | ( | char * | Line, |
int | iMode | ||
) |
Definition at line 644 of file chat_api.cpp.
Definition at line 629 of file chat_api.cpp.
int RemoveChatUser | ( | char * | nickname | ) |
Definition at line 600 of file chat_api.cpp.
const char* SendChatString | ( | const char * | line, |
int | raw | ||
) |
Send a string to be sent as chat, or scanned for messages (/msg <user> string)
Definition at line 305 of file chat_api.cpp.
int SetNewChatChannel | ( | char * | channel | ) |
Definition at line 429 of file chat_api.cpp.
char* Chan_list = NULL |
Definition at line 54 of file chat_api.cpp.
int Chat_server_connected = 0 |
Definition at line 56 of file chat_api.cpp.
char Chat_tracker_id[65] |
Definition at line 46 of file chat_api.cpp.
SOCKADDR_IN Chataddr |
Definition at line 39 of file chat_api.cpp.
SOCKET Chatsock |
Definition at line 38 of file chat_api.cpp.
Chat_channel * Currchannel |
Definition at line 65 of file chat_api.cpp.
Chat_command * Currcommand |
Definition at line 64 of file chat_api.cpp.
Chat_user * Curruser |
Definition at line 63 of file chat_api.cpp.
Chat_channel* Firstchannel |
Definition at line 65 of file chat_api.cpp.
Chat_command* Firstcommand |
Definition at line 64 of file chat_api.cpp.
Chat_user* Firstuser |
Definition at line 63 of file chat_api.cpp.
int Getting_user_channel_error = 0 |
Definition at line 49 of file chat_api.cpp.
char Getting_user_channel_info_for[33] = "" |
Definition at line 47 of file chat_api.cpp.
int Getting_user_tracker_error = 0 |
Definition at line 50 of file chat_api.cpp.
char Getting_user_tracker_info_for[33] = "" |
Definition at line 48 of file chat_api.cpp.
int GettingChannelList = 0 |
Definition at line 59 of file chat_api.cpp.
int GettingUserChannel = 0 |
Definition at line 61 of file chat_api.cpp.
int GettingUserTID = 0 |
Definition at line 60 of file chat_api.cpp.
char Input_chat_buffer[MAXCHATBUFFER] = "" |
Definition at line 45 of file chat_api.cpp.
int Joined_channel = 0 |
Definition at line 58 of file chat_api.cpp.
int Joining_channel = 0 |
Definition at line 57 of file chat_api.cpp.
char Nick_name[33] |
Definition at line 41 of file chat_api.cpp.
int Nick_variety = 0 |
Definition at line 43 of file chat_api.cpp.
char Orignial_nick_name[33] |
Definition at line 42 of file chat_api.cpp.
int Socket_connected = 0 |
Definition at line 55 of file chat_api.cpp.
int Socket_connecting = 0 |
Definition at line 40 of file chat_api.cpp.
char szChat_channel[33] = "" |
Definition at line 44 of file chat_api.cpp.
char* User_list = NULL |
Definition at line 53 of file chat_api.cpp.
char User_req_channel[100] = "" |
Definition at line 52 of file chat_api.cpp.
char User_req_tracker_id[100] = "" |
Definition at line 51 of file chat_api.cpp.