class Message
(source)
Hobbits message.
Message(protocol: String = "EWP", version: String = "0.2", command: String, headers: Bytes, body: Bytes)
Hobbits message. |
val body: Bytes |
|
val command: String |
|
val headers: Bytes |
|
val protocol: String |
|
val version: String |
fun size(): Int
Provides the size of the message |
|
fun toBytes(): Bytes
Writes a message into bytes. |
|
fun toString(): String |
fun readMessage(message: Bytes): Message?
Reads a message from a byte buffer. |