Pigweed
 
Loading...
Searching...
No Matches
pw::channel::EpollChannel Class Reference

#include <epoll_channel.h>

Inheritance diagram for pw::channel::EpollChannel:
pw::channel::Implement< ByteReaderWriter >

Public Member Functions

 EpollChannel (int channel_fd, async2::Dispatcher &dispatcher, multibuf::MultiBufAllocator &allocator)
 
 EpollChannel (const EpollChannel &)=delete
 
EpollChanneloperator= (const EpollChannel &)=delete
 
 EpollChannel (EpollChannel &&)=default
 
EpollChanneloperator= (EpollChannel &&)=default
 

Detailed Description

Channel implementation which writes to and reads from a file descriptor, backed by Linux's epoll notification system.

This channel depends on APIs provided by the EpollDispatcher and cannot be used with any other dispatcher backend.

An instantiated EpollChannel takes ownership of the file descriptor it is given, and will close it if the channel is closed or destroyed. Users should not close a channel's file descriptor from outside.


The documentation for this class was generated from the following file: