34 #ifndef ROSSERIAL_SERVER_TCP_SERVER_H 35 #define ROSSERIAL_SERVER_TCP_SERVER_H 38 #include <boost/bind.hpp> 39 #include <boost/asio.hpp> 49 using boost::asio::ip::tcp;
51 template<
typename Session = rosserial_server::Session<tcp::socket> >
55 TcpServer(boost::asio::io_service& io_service,
short port)
57 acceptor_(io_service, tcp::endpoint(tcp::v4(), port))
68 boost::asio::placeholders::error));
72 const boost::system::error_code& error)
92 #endif // ROSSERIAL_SERVER_TCP_SERVER_H TcpServer(boost::asio::io_service &io_service, short port)
Class representing a session between this node and a templated rosserial client.
boost::asio::io_service & io_service_
void handle_accept(Session *new_session, const boost::system::error_code &error)