acl/lib_fiber/samples/WinEchod/FiberConnect.h

25 lines
377 B
C
Raw Normal View History

2018-01-12 19:15:08 +08:00
#pragma once
class CWinEchodDlg;
2018-01-12 19:15:08 +08:00
class CFiberConnect : public acl::fiber
{
public:
CFiberConnect(CWinEchodDlg& hWin, const char* serverAddr, int count);
2018-01-12 19:15:08 +08:00
private:
~CFiberConnect(void);
// @override
void run(void);
private:
CWinEchodDlg& m_hWin;
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
};