$search

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

industrial::tcp_client::TcpClient::TcpClient (  ) 

Constructor.

Definition at line 47 of file tcp_client.cpp.

industrial::tcp_client::TcpClient::~TcpClient (  ) 

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:
buff server address (in string form) xxx.xxx.xxx.xxx
port_num port 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.

bool industrial::tcp_client::TcpClient::makeConnect (  )  [virtual]

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends


simple_message
Author(s): Shaun Edwards
autogenerated on Mon Mar 4 11:36:30 2013