![]() |
MyHandler Class Reference
Detailed DescriptionDefinition at line 21 of file sockets_test.cpp. Constructor & Destructor Documentation
Member Function Documentation
Definition at line 27 of file sockets_test.cpp. 00027 { 00028 for (socket_m::iterator it = m_sockets.begin(); it != m_sockets.end(); it++) 00029 { 00030 Socket *p0 = (*it).second; 00031 if (dynamic_cast<PoolSocket *>(p0)) 00032 { 00033 p -> Send("PoolSocket\n"); 00034 } 00035 else 00036 if (dynamic_cast<HttpGetSocket *>(p0)) 00037 { 00038 p -> Send("HttpGetSocket\n"); 00039 } 00040 else 00041 if (dynamic_cast<TcpSocket *>(p0)) 00042 { 00043 p -> Send("TcpSocket\n"); 00044 } 00045 else 00046 { 00047 p -> Send("Some kind of Socket\n"); 00048 } 00049 bool r; 00050 bool w; 00051 bool e; 00052 Handler().ISocketHandler_Get(p, r, w, e); 00053 char slask[1000]; 00054 sprintf(slask," Read: %s Write: %s Exception: %s\n", 00055 r ? "SET" : "not set", 00056 w ? "SET" : "not set", 00057 e ? "SET" : "not set"); 00058 p -> Send( slask ); 00059 } 00060 }
Definition at line 62 of file sockets_test.cpp. References m_quit. Referenced by main(). 00062 { return m_quit; }
Member Data Documentation
The documentation for this class was generated from the following file: |