summaryrefslogtreecommitdiff
path: root/syncClientSocket.h
diff options
context:
space:
mode:
Diffstat (limited to 'syncClientSocket.h')
-rw-r--r--syncClientSocket.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/syncClientSocket.h b/syncClientSocket.h
new file mode 100644
index 0000000..4288c02
--- /dev/null
+++ b/syncClientSocket.h
@@ -0,0 +1,25 @@
+#ifndef _SYNCCLIENTSOCKET_H
+#define _SYNCCLIENTSOCKET_H
+
+#include "Sockets/TcpSocket.h"
+#include "Sockets/ISocketHandler.h"
+#include "connectionList.h"
+
+#ifdef SOCKETS_NAMESPACE
+using namespace SOCKETS_NAMESPACE;
+#endif // SOCKETS_NAMESPACE
+
+class SyncClientSocket : public TcpSocket
+{
+public:
+ SyncClientSocket(ISocketHandler&,ConnectionList & );
+
+ bool OnConnectRetry();
+ void OnReconnect();
+ void OnRawData(const char *buf,size_t len);
+private:
+ ConnectionList & cl_;
+};
+
+
+#endif // _SYNCSOCKET_H