ReactorFD

An FD capable of performing sleeping operations through the reactor, when necessary

Constructors

this
this(int fd, bool alreadyNonBlocking)

Constructor from existing mecca.lib.FD

this
this(FD fd, bool alreadyNonBlocking)

Constructor from existing mecca.lib.FD

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Aliases

fcntl
alias fcntl = osCallErrno!(.fcntl.fcntl)
Undocumented in source.
ioctl
alias ioctl = osCallErrno!(.ioctl)
Undocumented in source.

Functions

blockingCall
auto blockingCall(Direction dir, Parameters!F[1..$] args, Timeout timeout)
Undocumented in source. Be warned that the author may not have intended to support it.
close
void close()

Cleanly closes an FD

opAssign
ReactorFD opAssign(ReactorFD rhs)

Move semantics opAssign

osCall
auto osCall(Parameters!F[1..$] args)
Undocumented in source. Be warned that the author may not have intended to support it.
osCallErrno
auto osCallErrno(Parameters!F[1..$] args)
Undocumented in source. Be warned that the author may not have intended to support it.
osCallErrnoMsg
auto osCallErrnoMsg(Parameters!F[1..$] args, string msg)
Undocumented in source. Be warned that the author may not have intended to support it.
passivify
FD passivify()

Take an FD out of the control of the reactor

read
ssize_t read(void[] buffer, Timeout timeout)
ssize_t read(T* ptr, Timeout timeout)

Perform reactor aware @safe read

registerCallback
void registerCallback(Direction dir, void delegate(void*) dlg, void* opaq, bool oneShot)

Register a user callback to be called if the FD is "active"

unregisterCallback
void unregisterCallback(Direction dir)
Undocumented in source. Be warned that the author may not have intended to support it.
write
ssize_t write(void[] buffer, Timeout timeout)
ssize_t write(const(T)* buffer, Timeout timeout)

Perform reactor aware @safe write

Properties

get
FD get [@property getter]

Returns the underlying mecca.lib.io.FD

isValid
bool isValid [@property getter]

Tests for open descriptor

Meta