E-MailRelay
|
A pimple-pattern implementation class used by GNet::FutureEvent. More...
Public Types | |
using | handle_type = FutureEvent::handle_type |
![]() | |
enum class | Reason { closed , down , reset , abort , other } |
Public Member Functions | |
FutureEventImp (FutureEventHandler &, ExceptionSink) | |
void | receive () |
handle_type | handle () noexcept |
FutureEventImp (const FutureEventImp &)=delete | |
FutureEventImp (FutureEventImp &&)=delete | |
void | operator= (const FutureEventImp &)=delete |
void | operator= (FutureEventImp &&)=delete |
![]() | |
virtual | ~EventHandler ()=default |
Destructor. | |
virtual void | readEvent () |
Called for a read event. More... | |
virtual void | writeEvent () |
Called for a write event. More... | |
virtual void | otherEvent (Reason) |
Called for a socket-exception event, or a socket-close event on windows. More... | |
Static Public Member Functions | |
static bool | send (handle_type, bool) noexcept |
![]() | |
static std::string | str (Reason) |
Returns a printable description of the other-event reason. More... | |
A pimple-pattern implementation class used by GNet::FutureEvent.
Definition at line 33 of file gfutureevent_unix.cpp.
using GNet::FutureEventImp::handle_type = FutureEvent::handle_type |
Definition at line 36 of file gfutureevent_unix.cpp.
GNet::FutureEventImp::FutureEventImp | ( | FutureEventHandler & | handler, |
ExceptionSink | es | ||
) |
Definition at line 85 of file gfutureevent_unix.cpp.
|
override |
Definition at line 104 of file gfutureevent_unix.cpp.
|
noexcept |
Definition at line 113 of file gfutureevent_unix.cpp.
void GNet::FutureEventImp::receive | ( | ) |
Definition at line 120 of file gfutureevent_unix.cpp.
|
staticnoexcept |
Definition at line 126 of file gfutureevent_unix.cpp.