Stream

Generic abstract stream. It stores a socket.

Constructors

this
this(Socket socket)
Undocumented in source.

Members

Functions

receive
ubyte[] receive()

Receives bytes from the connected socket.

send
ptrdiff_t send(ubyte[] buffer)

Sends bytes to the connected socket.

Properties

lastRecv
ptrdiff_t lastRecv [@property getter]

Indicates the result of the last receive call performed on the connected socket.

Variables

last_recv
ptrdiff_t last_recv;
Undocumented in source.
socket
Socket socket;

Socket used for writing and reading data.

Meta