Defines TCP server functions. More...
#include <tcp_server.h>

| Public Member Functions | |
| bool | init (int port_num) | 
| initializes TCP server socket. The connect method must be called following initialization in order to communicate with the remote host. | |
| bool | makeConnect () | 
| connects to the remote host | |
| TcpServer () | |
| Constructor. | |
| ~TcpServer () | |
| Destructor. | |
| Protected Member Functions | |
| int | getSrvrHandle () const | 
| void | setSrvrHandle (int srvr_handle_) | 
| Protected Attributes | |
| int | srvr_handle_ | 
| server handle. Every time a connection is made, the class generates a new handle for sending/receiving. The server handle is saved off to a separate variable so that recoving a lost connection is possible. | |
Defines TCP server functions.
Definition at line 51 of file tcp_server.h.
Constructor.
Definition at line 47 of file tcp_server.cpp.
Destructor.
Definition at line 54 of file tcp_server.cpp.
| int industrial::tcp_server::TcpServer::getSrvrHandle | ( | ) | const  [inline, protected] | 
Definition at line 86 of file tcp_server.h.
| bool industrial::tcp_server::TcpServer::init | ( | int | port_num | ) | 
initializes TCP server socket. The connect method must be called following initialization in order to communicate with the remote host.
| port_num | port number (server & client port number must match) | 
Definition at line 60 of file tcp_server.cpp.
| bool industrial::tcp_server::TcpServer::makeConnect | ( | ) |  [virtual] | 
connects to the remote host
Implements industrial::smpl_msg_connection::SmplMsgConnection.
Definition at line 121 of file tcp_server.cpp.
| void industrial::tcp_server::TcpServer::setSrvrHandle | ( | int | srvr_handle_ | ) |  [inline, protected] | 
Definition at line 91 of file tcp_server.h.
| int industrial::tcp_server::TcpServer::srvr_handle_  [protected] | 
server handle. Every time a connection is made, the class generates a new handle for sending/receiving. The server handle is saved off to a separate variable so that recoving a lost connection is possible.
Definition at line 84 of file tcp_server.h.