Go to the documentation of this file.
5 #ifndef BALL_SYSTEM_NETWORKING_H
6 #define BALL_SYSTEM_NETWORKING_H
8 #ifndef BALL_COMMON_GLOBAL_HH
12 #ifndef BALL_DATATYPE_STRING_H
16 #include <boost/asio.hpp>
18 #include <QtCore/QThread>
30 :
public boost::asio::ip::tcp::iostream
34 :
boost::asio::ip::tcp::iostream()
39 :
boost::asio::ip::tcp::iostream(hostname, protocol)
44 :
boost::asio::ip::tcp::iostream(hostname,
String(port))
66 acceptor_(io_service_)
116 #endif // BALL_SYSTEM_NETWORKING_H
virtual void handleConnection()
virtual void handleAsyncConnection()
virtual void startAccepting()
virtual void deactivate()
virtual void handleClose()
boost::asio::io_service io_service_
TCPServer(Size port, bool restart=true)
virtual void connectionRequested()
TCPIOStream(const String &hostname, Position port)
TCPIOStream(const String &hostname, const String &protocol)
virtual void deactivate()
virtual void activate_async()
TCPServerThread(Size port, bool asynchronous=true, bool restart=true)
boost::asio::ip::tcp::acceptor acceptor_
TCPIOStream connected_stream_