11 #ifndef NETWORK_INTERFACE_NETWORK_INTERFACE_H 12 #define NETWORK_INTERFACE_NETWORK_INTERFACE_H 18 #include <boost/asio.hpp> 19 #include <boost/bind.hpp> 60 const size_t &buf_size,
91 const size_t &buf_size,
95 const size_t &buf_size,
96 const size_t &bytes_to_read,
107 void timeout_handler(
const boost::system::error_code& error);
108 void read_handler(
const boost::system::error_code& error,
size_t bytes_read);
115 #endif // NETWORK_INTERFACE_NETWORK_INTERFACE_H
boost::asio::io_service io_service_
boost::asio::ip::tcp::socket socket_
return_statuses write(unsigned char *msg, const size_t &msg_size)
return_statuses read(unsigned char *msg, const size_t &buf_size, size_t &bytes_read)
std::string return_status_desc(const return_statuses &ret)
boost::system::error_code error_
boost::asio::ip::udp::endpoint sender_endpoint_
boost::asio::ip::udp::socket socket_
boost::asio::io_service io_service_
return_statuses open(const char *ip_address, const int &port)