23 #ifndef INCLUDED_BLOCKS_SOCKET_PDU_IMPL_H
24 #define INCLUDED_BLOCKS_SOCKET_PDU_IMPL_H
36 boost::asio::io_service d_io_service;
37 boost::array<char, 10000> d_rxbuf;
38 void run_io_service() { d_io_service.run(); }
41 boost::asio::ip::tcp::endpoint d_tcp_endpoint;
42 std::vector<tcp_connection::sptr> d_tcp_connections;
43 void handle_tcp_read(
const boost::system::error_code& error,
size_t bytes_transferred);
47 void start_tcp_accept();
49 void handle_tcp_accept(
tcp_connection::sptr new_connection,
const boost::system::error_code& error);
56 boost::asio::ip::udp::endpoint d_udp_endpoint;
57 boost::asio::ip::udp::endpoint d_udp_endpoint_other;
59 void handle_udp_read(
const boost::system::error_code& error,
size_t bytes_transferred);
63 socket_pdu_impl(std::string type, std::string addr, std::string port,
int MTU);