acl/lib_fiber/samples/WinEchod/FiberConnect.h

21 lines
312 B
C
Raw Normal View History

2018-01-12 19:15:08 +08:00
#pragma once
class CFiberConnect : public acl::fiber
{
public:
CFiberConnect(const char* serverAddr, int count);
2018-01-12 19:15:08 +08:00
private:
~CFiberConnect(void);
// @override
void run(void);
private:
acl::string m_serverAddr;
int m_count;
2018-01-12 22:29:21 +08:00
void doEcho(socket_t sock);
void doEcho(acl::socket_stream& conn);
2018-01-12 19:15:08 +08:00
};