acl/lib_fiber/cpp/include/fiber/tcp_keeper.hpp

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