summaryrefslogtreecommitdiff
path: root/src/syncServer.h
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-11-17 23:21:42 +0000
committerOthmar Gsenger <otti@anytun.org>2008-11-17 23:21:42 +0000
commit686c1ebee948a20193df1411d478693a29a0f658 (patch)
treea236388a253f919993a87e6a4a5ab7650785c45f /src/syncServer.h
parentfixed sync support (diff)
added OnConnect Callback
Diffstat (limited to 'src/syncServer.h')
-rw-r--r--src/syncServer.h4
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: