- Added documentation for `receiveMessage(Socket, ref byte[])`
This commit is contained in:
Tristan B. Velloza Kildaire 2023-03-25 21:07:56 +02:00
parent a3d01f43cf
commit 0814ec87e9
1 changed files with 9 additions and 4 deletions

View File

@ -3,11 +3,16 @@ module bformat.sockets;
import std.socket : Socket, SocketFlags, MSG_WAITALL;
/**
*
* Receives a message from the provided socket
* by decoding the streamed bytes into bformat
* and finally placing the resulting payload in
* the provided array
*
* Params:
* originator =
* receiveMessage =
* Returns:
* originator = the socket to receive from
* receiveMessage = the nbuffer to receive into
*
* Returns: true if the receive succeeded, false otheriwse
*/
public bool receiveMessage(Socket originator, ref byte[] receiveMessage)
{