52 m_socket(
ARCH->copySocket(socket)),
61 ARCH->closeSocket(m_socket);
66 if (m_object !=
nullptr) {
67 return (m_object->*m_method)(
this, read, write, error);
#define ARCH
Definition Arch.h:50
ArchSocketImpl * ArchSocket
Opaque socket type. An opaque type representing a socket.
Definition IArchNetwork.h:30
Socket multiplexer job.
Definition ISocketMultiplexerJob.h:18
bool isWritable() const override
Check for interest in writability.
Definition TSocketMultiplexerMethodJob.h:82
ISocketMultiplexerJob *(T::*)(ISocketMultiplexerJob *, bool, bool, bool) Method
Definition TSocketMultiplexerMethodJob.h:20
TSocketMultiplexerMethodJob(TSocketMultiplexerMethodJob const &)=delete
ArchSocket getSocket() const override
Get the socket.
Definition TSocketMultiplexerMethodJob.h:72
TSocketMultiplexerMethodJob(T *object, Method method, ArchSocket socket, bool readable, bool writeable)
run() invokes object->method(arg)
Definition TSocketMultiplexerMethodJob.h:47
~TSocketMultiplexerMethodJob() override
Definition TSocketMultiplexerMethodJob.h:59
TSocketMultiplexerMethodJob(TSocketMultiplexerMethodJob &&)=delete
TSocketMultiplexerMethodJob & operator=(TSocketMultiplexerMethodJob &&)=delete
bool isReadable() const override
Check for interest in readability.
Definition TSocketMultiplexerMethodJob.h:77
ISocketMultiplexerJob * run(bool readable, bool writable, bool error) override
Handle socket event.
Definition TSocketMultiplexerMethodJob.h:64
TSocketMultiplexerMethodJob & operator=(TSocketMultiplexerMethodJob const &)=delete