Udp

data class Udp(val type: Message.Udp.Type, val code: Message.Code, val id: Int, val token: Long, val options: List<Message.Option>, val payload: ByteArray) : Message

Constructors

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

Types

Link copied to clipboard
sealed class Type

Properties

Link copied to clipboard
open override val code: Message.Code
Link copied to clipboard
val id: Int

Allowable range is 0..65,535.

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:

Link copied to clipboard

Functions

Link copied to clipboard

Encodes Message receiver as a ByteArray.

Link copied to clipboard

Encodes only the header portion of Figure 7: Message Format:

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