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/syncTcpConnection.h | |
parent | fixed sync support (diff) |
added OnConnect Callback
Diffstat (limited to 'src/syncTcpConnection.h')
-rw-r--r-- | src/syncTcpConnection.h | 2 |
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); |