WIP, adding remote test client/server

This commit is contained in:
emeric
2014-04-14 22:56:20 +02:00
parent 298f6fb885
commit 9409fadc63
22 changed files with 438 additions and 46 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ class Server
typedef boost::asio::ip::tcp::endpoint endpoint_type;
// Serve up data from the given database
Server(const endpoint_type& endpoint, boost::filesystem::path dbPath);
Server(boost::asio::io_service& ioService, const endpoint_type& bindEndpoint, boost::filesystem::path dbPath);
// Run the server's io_service loop.
void run();
@@ -34,7 +34,7 @@ class Server
void asyncAccept();
void handleAccept(boost::system::error_code ec);
boost::asio::io_service _ioService;
boost::asio::io_service& _ioService;
/// Acceptor used to listen for incoming connections.
boost::asio::ip::tcp::acceptor _acceptor;