diff options
Diffstat (limited to 'src/syncServer.h')
-rw-r--r-- | src/syncServer.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/syncServer.h b/src/syncServer.h index 0899d26..092ad16 100644 --- a/src/syncServer.h +++ b/src/syncServer.h @@ -5,6 +5,8 @@ #include <boost/bind.hpp> #include <boost/shared_ptr.hpp> #include <boost/enable_shared_from_this.hpp> +#include <boost/function.hpp> + #include <asio.hpp> #include <list> #include "syncTcpConnection.h" @@ -15,7 +17,7 @@ class SyncServer { public: SyncServer(asio::io_service& io_service, asio::ip::tcp::endpoint tcp_endpoint ); - + boost::function<void(SyncTcpConnection *)> onConnect; std::list<SyncTcpConnection::pointer> conns_; void send(std::string message); private: |