mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2025-02-20 15:14:26 +01:00
20 lines
321 B
C++
20 lines
321 B
C++
#pragma once
|
|
|
|
namespace brynet { namespace net {
|
|
|
|
class EventLoop;
|
|
|
|
class Channel
|
|
{
|
|
public:
|
|
virtual ~Channel() = default;
|
|
|
|
private:
|
|
virtual void canSend() = 0;
|
|
virtual void canRecv() = 0;
|
|
virtual void onClose() = 0;
|
|
|
|
friend class EventLoop;
|
|
};
|
|
|
|
} } |