![]() |
ExtSocket Class Reference#include <ExtSocket.h>
Collaboration diagram for ExtSocket: ![]()
Detailed Description
Definition at line 10 of file ExtSocket.h. Constructor & Destructor Documentation
Definition at line 9 of file ExtSocket.cpp. 00010 :TcpSocket(h) 00011 ,m_parent(static_cast<MHandler&>(Handler()).GetMasterSocket()) 00012 ,m_id(static_cast<MHandler&>(h).GetUniqueID()) 00013 { 00014 }
Member Function Documentation
Definition at line 22 of file ExtSocket.cpp. References M2S_OPEN, m_id, and m_parent. 00023 { 00024 MHandler::service_v& ref = static_cast<MHandler&>(Handler()).GetServices(); 00025 for (MHandler::service_v::iterator it = ref.begin(); it != ref.end(); it++) 00026 { 00027 MHandler::SERVICE *p = *it; 00028 if (p -> port == GetParent() -> GetPort()) 00029 { 00030 if (Handler().Valid(m_parent)) 00031 { 00032 std::string tmp = p -> remote_host + ":" + Utility::l2string(p -> remote_port); 00033 m_parent -> SendCmd(m_id, M2S_OPEN, tmp.size()); 00034 m_parent -> Send(tmp); 00035 } 00036 } 00037 } 00038 }
Member Data Documentation
Definition at line 26 of file ExtSocket.h. Referenced by GetID(), OnAccept(), OnDelete(), and OnRawData().
The documentation for this class was generated from the following files: |