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 53 of file tcp_client.h.
Constructor.
Definition at line 47 of file tcp_client.cpp.
Destructor.
Definition at line 52 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 57 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 93 of file tcp_client.cpp.