blob: 5334079defcdd6598e0b590610ee966070cc4580 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#ifndef _SYNCCLIENTSOCKET_H
#define _SYNCCLIENTSOCKET_H
#include "Sockets/TcpSocket.h"
#include "Sockets/ISocketHandler.h"
#include "connectionList.h"
#include "syncCommand.h"
#include <sstream>
#include <iostream>
#include <string>
#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_;
std::stringstream iss_;
uint16_t missing_chars;
};
#endif // _SYNCSOCKET_H
|