mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
22 lines
305 B
C++
22 lines
305 B
C++
#pragma once
|
|
|
|
namespace brynet {
|
|
namespace net {
|
|
|
|
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;
|
|
};
|
|
|
|
} // namespace net
|
|
} // namespace brynet
|