diff options
author | Othmar Gsenger <otti@anytun.org> | 2007-12-12 15:43:21 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2007-12-12 15:43:21 +0000 |
commit | a5c965880da59f2af8a5f3ede2d97049983280a1 (patch) | |
tree | 14ec67391d6880c5c32a14c141ed93678573f480 | |
parent | added ctags target to makefile (diff) |
added printing of sync information to stdout
-rw-r--r-- | syncSocket.cpp | 7 | ||||
-rw-r--r-- | syncSocket.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/syncSocket.cpp b/syncSocket.cpp index 2edd7ca..1fe19a9 100644 --- a/syncSocket.cpp +++ b/syncSocket.cpp @@ -51,6 +51,13 @@ void SyncSocket::OnAccept() } } +void SyncSocket::OnRawData(const char *buf,size_t len) +{ + for(size_t index=0;index<len;index++) + { + std::cout << buf[index]; + } +} //void StatusSocket::InitSSLServer() //{ // InitializeContext("server.pem", "keypwd", SSLv23_method()); diff --git a/syncSocket.h b/syncSocket.h index 52ee6df..31169c1 100644 --- a/syncSocket.h +++ b/syncSocket.h @@ -18,6 +18,7 @@ public: bool OnConnectRetry(); void OnReconnect(); + void OnRawData(const char *buf,size_t len); // void Init(); // void InitSSLServer(); |