BufferedFiberSelectWriter

Constructors

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

Constructor

this
this(IFiberSelectProtocol other, size_t size)

Constructor

Members

Functions

buffer_size
size_t buffer_size()
buffer_size
size_t buffer_size(size_t s)

Sets the buffer size to s. If there are currently more than s bytes of data in the buffer, flush() is called before setting the size.

flush
typeof(this) flush()

Flushes the buffer and sends all pending data.

reset
typeof(this) reset()

Clears any pending data in the buffer.

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

Sends data_.

Static variables

default_buffer_size
auto default_buffer_size;

Default output buffer size (64 kB)

Inherited Members

From FiberSelectWriter

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().

IOutputDevice
alias IOutputDevice = .IOutputDevice

Output device

sent
size_t sent;

Number of bytes sent so far

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.

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.

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.

Meta