
|
DChatMinionSocket Class Reference#include <DChatMinionSocket.h>
List of all members.
Detailed Description
File ......... DChatMinionSocket.h Published .... 2004-04-19 Author ....... grymse@alhem.net
Definition at line 31 of file DChatMinionSocket.h.
Constructor & Destructor Documentation
DChatMinionSocket::DChatMinionSocket |
( |
ISocketHandler & |
|
) |
|
DChatMinionSocket::DChatMinionSocket |
( |
ISocketHandler & |
, |
|
|
const std::string & |
, |
|
|
ipaddr_t |
, |
|
|
port_t |
| |
|
) |
| | |
DChatMinionSocket::~DChatMinionSocket |
( |
|
) |
|
Member Function Documentation
ICrypt* DChatMinionSocket::AllocateCrypt |
( |
|
) |
[inline] |
int DChatMinionSocket::GetMaxConnections |
( |
|
) |
[inline] |
unsigned char* DChatMinionSocket::GetKey_m2minion |
( |
|
) |
[inline] |
void DChatMinionSocket::Notify |
( |
const std::string & |
str |
) |
[inline] |
bool DChatMinionSocket::OnVerifiedLine |
( |
const std::string & |
cmd, |
|
|
Parse & |
pa | |
|
) |
| | |
Definition at line 48 of file DChatMinionSocket.cpp. 00049 {
00050 if (cmd == "who")
00051 {
00052 static_cast<DChatHandler&>(Handler()).SendWho();
00053 }
00054 else
00055 if (cmd == "talk")
00056 {
00057 std::string who = Utility::base64d(pa.getword());
00058 std::string prat = pa.getrest();
00059 static_cast<DChatHandler&>(Handler()).SendTalk(who,prat);
00060 }
00061 else
00062 if (cmd == "online")
00063 {
00064 std::string who = Utility::base64d(pa.getword());
00065 static_cast<DChatHandler&>(Handler()).ShowWho(who);
00066 }
00067 else
00068 {
00069 return MinionSocket::OnVerifiedLine(cmd, pa);
00070 }
00071 return true;
00072 }
The documentation for this class was generated from the following files:
|