rcpp_framework/libs/brynet/net/Channel.hpp

16 lines
227 B
C++

#pragma once
class EventLoop;
class Channel {
public:
virtual ~Channel() = default;
private:
virtual void canSend() = 0;
virtual void canRecv(bool willClose) = 0;
virtual void onClose() = 0;
friend class EventLoop;
};