TaskSelectTransceiver

ditto

Constructors

this
this(IODevice iodev, IOWarning warning_e, IOError error_e, size_t read_buffer_size)

Constructor.

Members

Aliases

Event
alias Event = epoll_event_t.Event
Undocumented in source.

Functions

flush
void flush()

Sends all pending output data immediately. Calling this method has an effect only if the I/O device is a TCP socket.

read
void read(void[] data)

Populates data with data read from the I/O device.

readConsume
void readConsume(size_t delegate(void[] data) consume)

Calls consume with data read from the I/O device.

readValue
void readValue(T value)

Populates value with value.sizeof bytes read from the I/O device.

reset
void reset()

Removes any remaining data from I/O buffers, sends any pending output data immediately if possible, and removes the epoll registration of the I/O device, if any.

write
void write(const(void)[] data)

Writes data to the I/O device. If the I/O device is a TCP socket then data may be buffered for at most 200ms using the TCP Cork feature of Linux. In this case call flush() to write all pending data immediately.

writeValue
void writeValue(T value)

Writes the byte data of value to the I/O device. If the I/O device is a TCP socket then the data may be buffered for at most 200ms using the TCP Cork feature of Linux. In this case call flush() to write all pending data immediately.

Variables

iodev
IODevice iodev;

I/O device

select_client
TaskSelectClient select_client;

Task select client to wait for I/O events

Meta