Tcp

data class Tcp(val code: Message.Code, val token: Long, val options: List<Message.Option>, val payload: ByteArray) : Message

Constructors

Link copied to clipboard
constructor(code: Message.Code, token: Long, options: List<Message.Option>, payload: ByteArray)

Properties

Link copied to clipboard
open override val code: Message.Code
Link copied to clipboard
open override val options: List<Message.Option>
Link copied to clipboard
open override val payload: ByteArray
Link copied to clipboard
open override val token: Long

Per RFC 7252 2.2. Request/Response Model:

Functions

Link copied to clipboard

Encodes Message receiver as a ByteArray.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String