openser config with mysql authentication and location
[anytun.git] / syncClientSocket.h
blobea2c11ce9ffd5e82c607201fda81ad600f435f19
1 #ifndef _SYNCCLIENTSOCKET_H
2 #define _SYNCCLIENTSOCKET_H
4 #include "Sockets/TcpSocket.h"
5 #include "Sockets/ISocketHandler.h"
6 #include "connectionList.h"
7 #include "syncCommand.h"
8 #include <sstream>
9 #include <iostream>
10 #include <string>
14 #ifdef SOCKETS_NAMESPACE
15 using namespace SOCKETS_NAMESPACE;
16 #endif // SOCKETS_NAMESPACE
18 class SyncClientSocket : public TcpSocket
20 public:
21 SyncClientSocket(ISocketHandler&,ConnectionList & );
23 bool OnConnectRetry();
24 void OnReconnect();
25 void OnRawData(const char *buf,size_t len);
26 private:
27 ConnectionList & cl_;
28 std::stringstream iss_;
29 int32_t missing_chars;
30 int32_t buffer_size_;
34 #endif // _SYNCSOCKET_H