summaryrefslogtreecommitdiff
path: root/syncSocket.h
blob: 66fa84281337a7e104b11ade52d2451ad17b5427 (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
#ifndef _SYNCSOCKET_H
#define _SYNCSOCKET_H

#include "Sockets/TcpSocket.h"
#include "Sockets/ISocketHandler.h"
#include "connectionList.h"

#ifdef SOCKETS_NAMESPACE
using namespace SOCKETS_NAMESPACE;
#endif // SOCKETS_NAMESPACE

class SyncSocket : public TcpSocket
{
public:
	SyncSocket(ISocketHandler&,ConnectionList & );

	void OnAccept();

	bool OnConnectRetry();
	void OnReconnect();
	void OnLine(const std::string& line);
//	void OnRawData(const char *buf,size_t len);
//	void Init();

//	void InitSSLServer();
private:
	ConnectionList & cl_;
//	ResumeSocket2& operator=(const ResumeSocket2& ) { return *this; } // assignment operator
};


#endif // _SYNCSOCKET_H