BClient

Bformat client to encode and decode via a Socket or river-based Stream

Constructors

this
this(Socket socket)

Constructs a new BClient for encoding and decoding to and from the provided Socket

this
this(Stream stream)

Constructs a new BClient for encoding and decoding to and from the provided river-based Stream

Members

Functions

close
void close()

Closes the client

receiveMessage
bool receiveMessage(byte[] receiveMessage)

Receives a message from the provided socket by decoding the streamed bytes into bformat and finally placing the resulting payload in the provided array

sendMessage
bool sendMessage(byte[] message)

Encodes the provided message into the bformat format and sends it over the provided socket

Meta