FiberSelectWriter

Constructors

this
this(IOutputDevice output, SelectFiber fiber, IOWarning warning_e, IOError error_e)

Constructor.

this
this(typeof(super) other)

Constructor

Members

Aliases

IOutputDevice
alias IOutputDevice = .IOutputDevice

Output device

Functions

cork
bool cork(bool enabled)

Enables or disables the TCP_CORK feature.

cork
bool cork()

Tells whether the TCP_CORK feature is currently enabled.

flush
typeof(this) flush()

Sends all pending data immediately. May be overridden by a subclass; calls corkFlush() by default.

reset
typeof(this) reset()

Clears any pending data in the buffer.

send
typeof(this) send(const(void)[] data)

Writes data to the output conduit. Whenever the output conduit is not ready for writing, the output writing fiber is suspended and continues writing on resume.

transmit
bool transmit(Event events)

Attempts to write data to the output conduit. The output conduit may or may not write all elements of data.

Variables

cork_auto_flush
bool cork_auto_flush;

Set to true to make send() send all data immediately if the TCP_CORK feature is enabled. This has the same effect as calling corkFlush() after each send().

sent
size_t sent;

Number of bytes sent so far

Inherited Members

From IFiberSelectProtocol

SelectFiber
alias SelectFiber = .SelectFiber

Local aliases

IOWarning
alias IOWarning = .IOWarning
Undocumented in source.
IOError
alias IOError = .IOError
Undocumented in source.
conduit
ISelectable conduit;

I/O device

events_
Event events_;

Events to register the I/O device for.

warning_e
IOWarning warning_e;

IOWarning exception instance

error_e
IOError error_e;

IOError exception instance

fileHandle
Handle fileHandle()
events
Event events()
error_code
int error_code()
handle
bool handle(Event events)

Resumes the fiber coroutine and handle the events reported for the conduit. The fiber must be suspended (HOLD state).

transmitLoop
void transmitLoop()

Registers this instance in the select dispatcher and repeatedly calls transmit() until the transmission is finished.

transmit
bool transmit(Event events)

Reads/writes data from/to super.conduit for which events have been reported.

Meta