From 686c1ebee948a20193df1411d478693a29a0f658 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Mon, 17 Nov 2008 23:21:42 +0000 Subject: added OnConnect Callback --- src/anytun.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/anytun.cpp') diff --git a/src/anytun.cpp b/src/anytun.cpp index 4bb6e14..a2407e2 100644 --- a/src/anytun.cpp +++ b/src/anytun.cpp @@ -71,6 +71,7 @@ #ifndef ANYTUN_NOSYNC #include "syncServer.h" #include "syncClient.h" +#include "syncOnConnect.hpp" #endif #include "threadParam.h" @@ -217,6 +218,7 @@ void syncListener(SyncQueue * queue ) { asio::io_service io_service; SyncServer server(io_service,asio::ip::tcp::endpoint(asio::ip::tcp::v4(), gOpt.getLocalSyncPort())); + server.onConnect=boost::bind(syncOnConnect,_1); queue->setSyncServerPtr(&server); io_service.run(); } -- cgit v1.2.3