summaryrefslogtreecommitdiff
path: root/src/syncTcpConnection.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/syncTcpConnection.h')
-rw-r--r--src/syncTcpConnection.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/syncTcpConnection.h b/src/syncTcpConnection.h
index 5caf1a0..1ef9bb7 100644
--- a/src/syncTcpConnection.h
+++ b/src/syncTcpConnection.h
@@ -2,6 +2,7 @@
#define _SYNCTCPCONNECTION_H_
#include <boost/shared_ptr.hpp>
#include <boost/enable_shared_from_this.hpp>
+#include <boost/function.hpp>
#include <asio.hpp>
#include <string>
@@ -15,6 +16,7 @@ public:
{
return pointer(new SyncTcpConnection(io_service));
};
+ boost::function<void(SyncTcpConnection *)> onConnect;
asio::ip::tcp::socket& socket();
void start();
void Send(std::string message);