summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--syncSocket.cpp7
-rw-r--r--syncSocket.h1
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();