Public Member Functions
industrial::tcp_client::TcpClient Class Reference

Defines TCP client functions. More...

#include <tcp_client.h>

Inheritance diagram for industrial::tcp_client::TcpClient:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

Defines TCP client functions.

Definition at line 51 of file tcp_client.h.


Constructor & Destructor Documentation

Constructor.

Definition at line 44 of file tcp_client.cpp.

Destructor.

Definition at line 49 of file tcp_client.cpp.


Member Function Documentation

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.

Parameters:
buffserver address (in string form) xxx.xxx.xxx.xxx
port_numport number (server & client port number must match)
Returns:
true on success, false otherwise (socket is invalid)

Definition at line 54 of file tcp_client.cpp.

connects to the remote host

Returns:
true on success, false otherwise

Implements industrial::smpl_msg_connection::SmplMsgConnection.

Definition at line 90 of file tcp_client.cpp.


The documentation for this class was generated from the following files:


simple_message
Author(s): Shaun Edwards
autogenerated on Fri Aug 28 2015 11:11:57