mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-15 01:10:52 +08:00
23 lines
367 B
C++
23 lines
367 B
C++
#pragma once
|
|
|
|
class CWinFiberDlg;
|
|
|
|
class CFiberConnect : public acl::fiber
|
|
{
|
|
public:
|
|
CFiberConnect(CWinFiberDlg& hWin, const char* serverAddr, int count);
|
|
~CFiberConnect(void);
|
|
|
|
// @override
|
|
void run(void);
|
|
|
|
private:
|
|
CWinFiberDlg& m_hWin;
|
|
acl::string m_serverAddr;
|
|
int m_count;
|
|
|
|
void doEcho(socket_t sock);
|
|
void doEcho(acl::socket_stream& conn);
|
|
};
|
|
|