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 53 of file tcp_client.h.


Constructor & Destructor Documentation

Constructor.

Definition at line 47 of file tcp_client.cpp.

Destructor.

Definition at line 52 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 57 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 93 of file tcp_client.cpp.


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


simple_message
Author(s): Shaun Edwards
autogenerated on Mon Oct 6 2014 00:54:18