Package-level declarations

Types

Link copied to clipboard
sealed class Ack : V086Message
Link copied to clipboard
data class AllReady(var messageNumber: Int) : V086Message, ServerMessage, ClientMessage

Message sent by both client and server to indicate that they are ready for the game to start.

Link copied to clipboard
data class CachedGameData(var messageNumber: Int, val key: Int) : V086Message, ServerMessage, ClientMessage

Fills the same function as GameData but encodes a 0-based cache index (key) corresponding to game data that has already been sent.

Link copied to clipboard
sealed class Chat : V086Message

Message type ID: 0x07.

Link copied to clipboard
data class ChatNotification(var messageNumber: Int, val username: String, val message: String) : Chat, ServerMessage

Message sent by the server containing a server chat message.

Link copied to clipboard
data class ChatRequest(var messageNumber: Int, val message: String) : Chat, ClientMessage

Message sent by the client containing a server chat message.

Link copied to clipboard
data class ClientAck(var messageNumber: Int) : Ack, ClientMessage

This is effectively a ping response sent by the client when it receives a ServerAck.

Link copied to clipboard
sealed interface ClientMessage

V086Message that is sent from clients to the server.

Link copied to clipboard
data class CloseGame(var messageNumber: Int, val gameId: Int, val val1: Int) : V086Message, ServerMessage
Link copied to clipboard
data class ConnectionRejected(var messageNumber: Int, val username: String, val userId: Int, val message: String) : V086Message, ServerMessage

Message sent from the server to indicate that the client is not allowed to join the server, including a message to be displayed to the user.

Link copied to clipboard
sealed class CreateGame : V086Message
Link copied to clipboard
data class CreateGameNotification(var messageNumber: Int, val username: String, val romName: String, val clientType: String, val gameId: Int, val val1: Int) : CreateGame, ServerMessage

Server message indicating that a new game has been created.

Link copied to clipboard
data class CreateGameRequest(var messageNumber: Int, val romName: String) : CreateGame, ClientMessage

Client message requesting to create a new game.

Link copied to clipboard
sealed class GameChat : V086Message
Link copied to clipboard
data class GameChatNotification(var messageNumber: Int, val username: String, val message: String) : GameChat, ServerMessage

Message sent by the server containing a game chat message.

Link copied to clipboard
data class GameChatRequest(var messageNumber: Int, val message: String) : GameChat, ClientMessage

Message sent by the client containing a game chat message.

Link copied to clipboard
data class GameData(var messageNumber: Int, val gameData: ByteBuf) : V086Message, ClientMessage, ServerMessage, ReferenceCounted

A message sent by both the client and server, which contains game input data as a ByteBuf.

Link copied to clipboard
data class GameKick(var messageNumber: Int, val userId: Int) : V086Message, ClientMessage

Message sent to kick a user by userId from a game.

Link copied to clipboard
data class GameStatus(var messageNumber: Int, val gameId: Int, val val1: Int, val gameStatus: GameStatus, val numPlayers: Byte, val maxPlayers: Byte) : V086Message, ServerMessage

Message sent by the server to notify all clients that a game's status has changed.

Link copied to clipboard
data class InformationMessage(var messageNumber: Int, val source: String, val message: String) : V086Message, ServerMessage

A message from the server containing text to be displayed to the user, including a source.

Link copied to clipboard
sealed class JoinGame : V086Message
Link copied to clipboard
data class JoinGameNotification(var messageNumber: Int, val gameId: Int, val val1: Int, val username: String, val ping: Duration, val userId: Int, val connectionType: ConnectionType) : JoinGame, ServerMessage

Server message indiciating a user successfully joined a game.

Link copied to clipboard
data class JoinGameRequest(var messageNumber: Int, val gameId: Int, val connectionType: ConnectionType) : JoinGame, ClientMessage

Client message from a user requesting to join a game.

Link copied to clipboard
data class KeepAlive(var messageNumber: Int, val value: Short) : V086Message, ClientMessage

Message periodically sent by the client so the server knows it is still connected on that port.

Link copied to clipboard
sealed interface MessageSerializer<E : V086Message>
Link copied to clipboard
sealed class PlayerDrop : V086Message
Link copied to clipboard
data class PlayerDropNotification(var messageNumber: Int, val username: String, val playerNumber: Byte) : PlayerDrop, ServerMessage
Link copied to clipboard
data class PlayerDropRequest(var messageNumber: Int) : PlayerDrop, ClientMessage
Link copied to clipboard
data class PlayerInformation(var messageNumber: Int, val players: List<PlayerInformation.Player>) : V086Message, ServerMessage

Message sent by the server when a user joins a game, which lists all of the players in that game.

Link copied to clipboard
sealed class Quit : V086Message
Link copied to clipboard
sealed class QuitGame : V086Message
Link copied to clipboard
data class QuitGameNotification(var messageNumber: Int, val username: String, val userId: Int) : QuitGame, ServerMessage

Message sent by the server to notify that a user has left the game.

Link copied to clipboard
data class QuitGameRequest(var messageNumber: Int) : QuitGame, ClientMessage

Message sent by the client to request to leave a game.

Link copied to clipboard
data class QuitNotification(var messageNumber: Int, val username: String, val userId: Int, val message: String) : Quit

Message sent by the server to notify all clients that the user left the server.

Link copied to clipboard
data class QuitRequest(var messageNumber: Int, val message: String) : Quit

Message sent by the client before leaving the server.

Link copied to clipboard
data class ServerAck(var messageNumber: Int) : Ack, ServerMessage

A message the server sends to the client, from which it expects a ClientAck in response.

Link copied to clipboard
sealed interface ServerMessage

V086Message that is sent from the server to clients.

Link copied to clipboard
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.

Link copied to clipboard
sealed class StartGame : V086Message
Link copied to clipboard
data class StartGameNotification(var messageNumber: Int, val val1: Int, val playerNumber: Short, val numPlayers: Short) : StartGame, ServerMessage

Message sent from the server to all clients, informing that a game has started.

Link copied to clipboard
data class StartGameRequest(var messageNumber: Int) : StartGame, ClientMessage

Message sent from the client to request that a game starts.

Link copied to clipboard
data class UserInformation(var messageNumber: Int, val username: String, val clientType: String, val connectionType: ConnectionType) : V086Message, ClientMessage

Message sent from the client when a user joins the server to indicate username, clientType, and connectionType.

Link copied to clipboard
data class UserJoined(var messageNumber: Int, val username: String, val userId: Int, val ping: Duration, val connectionType: ConnectionType) : V086Message

Message sent from the server to all clients to give information about a new client that has joined the server.

Link copied to clipboard
sealed interface V086Bundle : ByteBufferMessage, ReferenceCounted
Link copied to clipboard
class V086BundleFormatException(msg: String?, cause: Throwable? = null) : Exception
Link copied to clipboard

A message in the v086 Kaillera protocol.

Functions

Link copied to clipboard