Channel

Undocumented in source.
interface Channel : ReadChannel , WriteChannel {}

Members

Functions

destroy
void destroy()

Destroy the channel.

Inherited Members

From ReadChannel

OutRange
alias OutRange = void delegate(const(ubyte)[] data)
Undocumented in source.
hasData
bool hasData()

If the channel is open.

hasPendingData
bool hasPendingData()

If there is data to read, non blocking.

read
const(ubyte)[] read(size_t s)

Read at most s bytes from the channel.

destroy
void destroy()

ditto Destroy the channel.

From WriteChannel

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

Writes as much data as possible to the output.

flush
void flush()

Flush the output.

destroy
void destroy()

Destroy the channel.

closeWrite
void closeWrite()

Close the write channel.

Meta