#include <ot_lib.h>
Public Types | |
| enum | OT_SOCKET_SERVER_MODE { OT_SOCKET_MODE_WAIT, OT_SOCKET_MODE_FORCE_EXIT } |
Public Member Functions | |
| ot_socketServer (ot_functionManager &fm, ost::InetAddress addr, int port, OT_SOCKET_SERVER_MODE mode=OT_SOCKET_MODE_WAIT) | |
| ~ot_socketServer (void) | |
| int | getPort (void) const |
| void | setMode (OT_SOCKET_SERVER_MODE mode) |
Private Attributes | |
| auto_ptr< serverTCPSocket > | m_serverSocket |
| ost::InetAddress | m_addr |
| int | m_port |
| OT_SOCKET_SERVER_MODE | m_mode |
| ot_functionManager & | m_fm |
| ot_lib::ot_socketServer::ot_socketServer | ( | ot_functionManager & | fm, | |
| ost::InetAddress | addr, | |||
| int | port, | |||
| OT_SOCKET_SERVER_MODE | mode = OT_SOCKET_MODE_WAIT | |||
| ) |
| ot_lib::ot_socketServer::~ot_socketServer | ( | void | ) | [inline] |
| int ot_lib::ot_socketServer::getPort | ( | void | ) | const [inline] |
| void ot_lib::ot_socketServer::setMode | ( | OT_SOCKET_SERVER_MODE | mode | ) |
Set the server mode
| mode | Server mode |
auto_ptr<serverTCPSocket> ot_lib::ot_socketServer::m_serverSocket [private] |
ost::InetAddress ot_lib::ot_socketServer::m_addr [private] |
int ot_lib::ot_socketServer::m_port [private] |
ot_functionManager& ot_lib::ot_socketServer::m_fm [private] |
1.5.5