summaryrefslogtreecommitdiff
path: root/src/syncServer.cpp
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.cpp
parentfixed sync support (diff)
added OnConnect Callback
Diffstat (limited to 'src/syncServer.cpp')
-rw-r--r--src/syncServer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/syncServer.cpp b/src/syncServer.cpp
index ea6df4b..1468d74 100644
--- a/src/syncServer.cpp
+++ b/src/syncServer.cpp
@@ -32,6 +32,7 @@ void SyncServer::handle_accept(SyncTcpConnection::pointer new_connection,
{
if (!error)
{
+ new_connection->onConnect=onConnect;
new_connection->start();
start_accept();
}