CloudServer message format
Posted: Jul 2nd, '17, 21:39
If the current cloud server message format could be published - that would be very useful info
Welcome to the GP Community!
https://gpblocks.org/forum/
Code: Select all
// A RemoteMessage is a serializable message used for network communications.
// It consists of a command, zero or more arguments, and zero or more 'blobs'.
// Arguments can be numbers, strings, booleans, or nil. Blobs can contain string
// or binary data. The format of a message is:
//
// command [arguments] <newline>
// [blobs]
//
// The ASCII newline character is the single byte 10.
// Each blob is:
//
// bytecount <newline>
// <bytecount bytes of data> <newline>
// <terminator> <newline>
//
// The bytecount is a human-readable string representing decimal number.
// The terminator is the 10-byte string: '----------' (i.e. 10 hyphens).
//
// This format allows messages to be viewed in a text editor for debugging
// (one can easily read bytecounts or search for terminators), yet it supports
// efficient inclusion of arbitrary binary data (no need to encode as Base64).