Defines TCP client functions. More...
#include <tcp_client.h>
Public Member Functions | |
bool | init (char *buff, int port_num) |
initializes TCP client socket. Object can either be a client OR a server, NOT BOTH. | |
bool | makeConnect () |
connects to the remote host | |
TcpClient () | |
Constructor. | |
~TcpClient () | |
Destructor. |
Defines TCP client functions.
Definition at line 51 of file tcp_client.h.
Constructor.
Definition at line 44 of file tcp_client.cpp.
Destructor.
Definition at line 49 of file tcp_client.cpp.
bool industrial::tcp_client::TcpClient::init | ( | char * | buff, |
int | port_num | ||
) |
initializes TCP client socket. Object can either be a client OR a server, NOT BOTH.
buff | server address (in string form) xxx.xxx.xxx.xxx |
port_num | port number (server & client port number must match) |
Definition at line 54 of file tcp_client.cpp.
bool industrial::tcp_client::TcpClient::makeConnect | ( | ) | [virtual] |
connects to the remote host
Implements industrial::smpl_msg_connection::SmplMsgConnection.
Definition at line 90 of file tcp_client.cpp.