Public Member Functions | Private Member Functions | Private Attributes
AS::Network::TCPInterface Class Reference

#include <network_interface.h>

List of all members.

Public Member Functions

return_statuses close ()
bool is_open ()
return_statuses open (const char *ip_address, const int &port)
return_statuses read (unsigned char *msg, const size_t &buf_size, size_t &bytes_read, int timeout_ms=0)
return_statuses read_exactly (unsigned char *msg, const size_t &buf_size, const size_t &bytes_to_read, int timeout_ms=0)
 TCPInterface ()
return_statuses write (unsigned char *msg, const size_t &msg_size)
 ~TCPInterface ()

Private Member Functions

void read_handler (const boost::system::error_code &error, size_t bytes_read)
void timeout_handler (const boost::system::error_code &error)

Private Attributes

size_t bytes_read_
boost::system::error_code error_
boost::asio::io_service io_service_
boost::asio::ip::tcp::socket socket_

Detailed Description

Definition at line 72 of file network_interface.h.


Constructor & Destructor Documentation

Definition at line 14 of file tcp_interface.cpp.

Definition at line 20 of file tcp_interface.cpp.


Member Function Documentation

Definition at line 53 of file tcp_interface.cpp.

Definition at line 71 of file tcp_interface.cpp.

return_statuses TCPInterface::open ( const char *  ip_address,
const int &  port 
)

Definition at line 24 of file tcp_interface.cpp.

return_statuses TCPInterface::read ( unsigned char *  msg,
const size_t &  buf_size,
size_t &  bytes_read,
int  timeout_ms = 0 
)

Definition at line 90 of file tcp_interface.cpp.

return_statuses TCPInterface::read_exactly ( unsigned char *  msg,
const size_t &  buf_size,
const size_t &  bytes_to_read,
int  timeout_ms = 0 
)

Definition at line 146 of file tcp_interface.cpp.

void TCPInterface::read_handler ( const boost::system::error_code &  error,
size_t  bytes_read 
) [private]

Definition at line 85 of file tcp_interface.cpp.

void TCPInterface::timeout_handler ( const boost::system::error_code &  error) [private]

Definition at line 76 of file tcp_interface.cpp.

return_statuses TCPInterface::write ( unsigned char *  msg,
const size_t &  msg_size 
)

Definition at line 202 of file tcp_interface.cpp.


Member Data Documentation

Definition at line 105 of file network_interface.h.

boost::system::error_code AS::Network::TCPInterface::error_ [private]

Definition at line 104 of file network_interface.h.

boost::asio::io_service AS::Network::TCPInterface::io_service_ [private]

Definition at line 102 of file network_interface.h.

boost::asio::ip::tcp::socket AS::Network::TCPInterface::socket_ [private]

Definition at line 103 of file network_interface.h.


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


network_interface
Author(s): Joshua Whitley , Daniel Stanek , Joe Kale
autogenerated on Thu Jun 6 2019 21:43:30