mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-05 05:18:53 +08:00
9697f95b8f
This reverts commit 15d999759e
.
25 lines
401 B
C++
25 lines
401 B
C++
#pragma once
|
|
|
|
class CWinEchodDlg;
|
|
|
|
class CFiberConnect : public acl::fiber
|
|
{
|
|
public:
|
|
CFiberConnect(CWinEchodDlg& hWin, const char* serverAddr, int count);
|
|
|
|
private:
|
|
~CFiberConnect(void);
|
|
|
|
// @override
|
|
void run(void);
|
|
|
|
private:
|
|
CWinEchodDlg& m_hWin;
|
|
acl::string m_serverAddr;
|
|
int m_count;
|
|
|
|
void doEcho(socket_t sock);
|
|
void doEcho(acl::socket_stream& conn);
|
|
};
|
|
|