2 #include "../acl_cpp_define.hpp" 3 #include "../stdlib/noncopyable.hpp" 25 virtual int read(
void* buf,
size_t len) = 0;
33 virtual int send(
const void* buf,
size_t len) = 0;
49 virtual bool on_close(
bool alive) { (void) alive;
return true; }
virtual void destroy(void)
virtual bool on_close(bool alive)
virtual ~stream_hook(void)