ChonkReader

Undocumented in source.

Constructors

this
this(Socket socket, ptrdiff_t chunkSize)
Undocumented in source.

Members

Functions

receiveAll
ptrdiff_t receiveAll(byte[] buffer)

Read the amount given by the size of the buffer This uses MSG_WAITALL and will only return when the full amount bytes requested is fulfilled, not just the currently available amount in the kernel network queue

receiveUntilClose
ulong receiveUntilClose(byte[] buffer)

Some applications have no header for length but demarcate the data ending by closing the socket here one would want to chunk read as making an assumption about how much data is sent would be futile

Meta