diff options
author | Othmar Gsenger <otti@anytun.org> | 2007-12-13 12:56:50 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2007-12-13 12:56:50 +0000 |
commit | cf7d42e10e3a2025df7857e180c07fcea404a05d (patch) | |
tree | 809e1c43e22d2fffc2210a3ae091a25a1342c5df /syncClientSocket.h | |
parent | codechanges in sha1authalgo (diff) |
splitten SyncSocket to SyncSocket and SyncClientSocket
Diffstat (limited to 'syncClientSocket.h')
-rw-r--r-- | syncClientSocket.h | 25 |
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 |