mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-14 17:00:52 +08:00
28 lines
348 B
C++
28 lines
348 B
C++
#pragma once
|
|
#include "fiber_cpp_define.hpp"
|
|
|
|
namespace acl {
|
|
|
|
class fiber_waiter;
|
|
class socket_stream;
|
|
|
|
class tcp_keeper : public thread
|
|
{
|
|
public:
|
|
tcp_keeper(void);
|
|
~tcp_keeper(void);
|
|
|
|
socket_stream* peek(const char* addr);
|
|
|
|
void stop(void);
|
|
|
|
protected:
|
|
// @override
|
|
void* run(void);
|
|
|
|
private:
|
|
fiber_waiter* waiter_;
|
|
};
|
|
|
|
} // namespace acl
|