![]() |
DChatHandler Class Reference#include <DChatHandler.h>
Detailed DescriptionFile ......... DChatHandler.h Published .... 2004-04-19 Author ....... grymse@alhem.net
Definition at line 36 of file DChatHandler.h. Constructor & Destructor Documentation
File ......... DChatHandler.cpp Published .... 2004-04-19 Author ....... grymse@alhem.net Definition at line 30 of file DChatHandler.cpp.
Member Function Documentation
Definition at line 47 of file DChatHandler.cpp. 00048 { 00049 std::string msg = "talk:" + Utility::base64(name); 00050 msg += ":" + prat; 00051 SendMessage(Utility::base64(msg)); 00052 }
Definition at line 55 of file DChatHandler.cpp. 00056 { 00057 for (socket_m::iterator it = m_sockets.begin(); it != m_sockets.end(); it++) 00058 { 00059 Socket *p0 = (*it).second; 00060 ChatSocket *p = dynamic_cast<ChatSocket *>(p0); 00061 if (p) 00062 { 00063 std::string msg = "online:" + Utility::base64(p -> GetName()); 00064 SendMessage(Utility::base64(msg)); 00065 } 00066 } 00067 }
Definition at line 70 of file DChatHandler.cpp. 00071 { 00072 for (socket_m::iterator it = m_sockets.begin(); it != m_sockets.end(); it++) 00073 { 00074 Socket *p0 = (*it).second; 00075 ChatSocket *p = dynamic_cast<ChatSocket *>(p0); 00076 if (p) 00077 { 00078 std::string str = who + " says '" + prat + "'\n"; 00079 p -> Send( "\n" + str); 00080 p -> Send(">"); 00081 } 00082 } 00083 }
Definition at line 86 of file DChatHandler.cpp. 00087 { 00088 for (socket_m::iterator it = m_sockets.begin(); it != m_sockets.end(); it++) 00089 { 00090 Socket *p0 = (*it).second; 00091 ChatSocket *p = dynamic_cast<ChatSocket *>(p0); 00092 if (p) 00093 { 00094 std::string str = who + " is online.\n"; 00095 p -> Send( "\n" + str); 00096 p -> Send(">"); 00097 } 00098 } 00099 }
The documentation for this class was generated from the following files: |