acl/lib_fiber/samples/WinEchod/FiberConnect.h

22 lines
313 B
C
Raw Normal View History

2018-01-12 19:15:08 +08:00
#pragma once
class CFiberConnect : public acl::fiber
{
public:
2018-01-12 22:29:21 +08:00
CFiberConnect(const char* serverIP, int serverPort, UINT count);
2018-01-12 19:15:08 +08:00
private:
~CFiberConnect(void);
// @override
void run(void);
private:
2018-01-12 22:29:21 +08:00
CString m_serverIP;
int m_serverPort;
UINT m_count;
2018-01-12 19:15:08 +08:00
socket_t m_sock;
2018-01-12 22:29:21 +08:00
void doEchoe(void);
2018-01-12 19:15:08 +08:00
};