bformat.sockets

Socket encoding/decoding functions

Members

Functions

receiveMessage
bool receiveMessage(Socket originator, 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(Socket recipient, byte[] message)

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

Meta