The "mortal.net" chat protocol should be simple enough...
More...
#include <OnlineChat.h>
List of all members.
Detailed Description
The "mortal.net" chat protocol should be simple enough...
[LOGGING IN]
Server: <greeting msg=""> Client: N <version> <nickname> Server: OK <actual nickname="">
[CHATTING]
Server: J <user> <ip> - User joins. Server: L <user> - User leaves. Server: N <user> <newnick> - Nick change. Server: W <user> <ip> - Whois response Server: Y <num> - You are now known as... Server: C <user> - Someone has challenged you!
Server: M <user> <text> - Public message. Server: S <text> - Server message.
Client: M <text> - Send message. Client: W <user> - WHOIS query Client: L - Quit Client: C <user> - Challenge a user
Constructor & Destructor Documentation
COnlineChat::COnlineChat |
( |
|
) |
|
|
Member Function Documentation
void COnlineChat::DoOnlineChat |
( |
|
) |
|
|
void COnlineChat::DrawNickList |
( |
|
) |
[protected] |
|
void COnlineChat::Menu |
( |
|
) |
[protected] |
|
void COnlineChat::ReceiveMsg |
( |
char |
a_cID, |
|
|
char * |
a_pcData |
|
) |
[protected] |
|
void COnlineChat::ReceiveUser |
( |
char |
a_cID, |
|
|
char * |
a_pcData |
|
) |
[protected] |
|
void COnlineChat::Redraw |
( |
|
) |
[protected] |
|
void COnlineChat::SendRawData |
( |
char |
a_cID, |
|
|
const std::string & |
a_rsData |
|
) |
[protected] |
|
bool COnlineChat::Start |
( |
|
) |
|
|
void COnlineChat::Stop |
( |
|
) |
|
|
void COnlineChat::Update |
( |
|
) |
[protected] |
|
Member Data Documentation
|
How much of the buffer is filled?
|
|
The TCP/IP network socket.
|
|
SDLNet construct for watching the socket.
|
|
The last error message from SDLNet.
|
The documentation for this class was generated from the following files: