ServerStatus

data class ServerStatus(var messageNumber: Int, val users: List<ServerStatus.User>, val games: List<ServerStatus.Game>) : V086Message, ServerMessage

Message sent by the server when the user joins, listing all of the users and games.

It's possible this is meant to be sent more often than that.

Message type ID: 0x04.

Constructors

Link copied to clipboard
constructor(messageNumber: Int, users: List<ServerStatus.User>, games: List<ServerStatus.Game>)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Game(val romName: String, val gameId: Int, val clientType: String, val username: String, val playerCountOutOfMax: String, val status: GameStatus)
Link copied to clipboard
data class User(val username: String, val ping: Duration, val status: UserStatus, val userId: Int, val connectionType: ConnectionType)

Properties

Link copied to clipboard
open override val bodyBytes: Int

Number of bytes the body of the message takes up (excluding the message ID byte).

Link copied to clipboard
open override val bodyBytesPlusMessageIdType: Int

The total number of bytes the message takes up, including the message ID byte.

Link copied to clipboard
Link copied to clipboard
open override var messageNumber: Int

The 0-based enumeration indicating the order in which this message was sent/received for each server.

Link copied to clipboard
open override val messageTypeId: Byte
Link copied to clipboard

Functions

Link copied to clipboard
open override fun writeBodyTo(buffer: ByteBuf)
open override fun writeBodyTo(buffer: ByteBuffer)
Link copied to clipboard
open override fun writeTo(buffer: ByteBuf)
fun writeTo(buffer: ByteBuffer)