diff options
author | Othmar Gsenger <otti@anytun.org> | 2008-11-17 23:21:42 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2008-11-17 23:21:42 +0000 |
commit | 686c1ebee948a20193df1411d478693a29a0f658 (patch) | |
tree | a236388a253f919993a87e6a4a5ab7650785c45f /src/syncServer.h | |
parent | fixed sync support (diff) |
added OnConnect Callback
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: |