mirror of
https://github.com/besterprotocol/bformat
synced 2023-12-13 21:30:24 +01:00
- Holds teh socket for the lifetime of usage and you can now use `receiveMessage(ref byte[])` and `sendMesssage(byte[])` on it
29 lines
658 B
D
29 lines
658 B
D
/**
|
|
* bformat encoder/decoder
|
|
*/
|
|
module bformat;
|
|
|
|
/**
|
|
* Encodes the provided message into the bformat format
|
|
* and sends it over the provided socket
|
|
*/
|
|
public import bformat.sockets : BClient;
|
|
|
|
/**
|
|
* Receives a message from the provided socket
|
|
* by decoding the streamed bytes into bformat
|
|
* and finally placing the resulting payload in
|
|
* the provided array
|
|
*/
|
|
// public import bformat.sockets : receiveMessage;
|
|
|
|
/**
|
|
* Encodes the provided message into the bformat format
|
|
*/
|
|
public import bformat.marshall : encodeBformat;
|
|
|
|
/**
|
|
* Decodes the provided bformat message into the
|
|
* message itself
|
|
*/
|
|
public import bformat.marshall : decodeMessage; |