KailleraUser

class KailleraUser(val id: Int, val protocol: String, val connectSocketAddress: InetSocketAddress, clientHandler: V086ClientHandler, val server: KailleraServer, flags: RuntimeFlags, clock: Clock)

Represents a user in the server.

A thread is dedicated to each user and we can probably clean this up.

Constructors

Link copied to clipboard
constructor(id: Int, protocol: String, connectSocketAddress: InetSocketAddress, clientHandler: V086ClientHandler, server: KailleraServer, flags: RuntimeFlags, clock: Clock)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Level of access that the user has.

Link copied to clipboard
Link copied to clipboard

User action data response message size (in number of bytes).

Link copied to clipboard
Link copied to clipboard

Example: "Project 64k 0.13 (01 Aug 2003)"

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val id: Int
Link copied to clipboard
Link copied to clipboard

This is called "p2p mode" in the code and commands.

Link copied to clipboard
Link copied to clipboard

We haven't heard anything from the user in a long time and it's likely their client is no longer connected.

Link copied to clipboard
Link copied to clipboard

The user may have a successful connection to the server, but they are seemingly AFK for longer than the policy allows.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var name: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun addGameData(data: ByteBuf): Result<Unit>
Link copied to clipboard
fun addIgnoredUser(address: String)
Link copied to clipboard
fun chat(message: String)
Link copied to clipboard
Link copied to clipboard

Acts on an event in realtime.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
Link copied to clipboard
fun gameChat(message: String, messageID: Int)
Link copied to clipboard
fun gameKick(userID: Int)
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
fun login(): Result<Unit>
Link copied to clipboard
Link copied to clipboard
fun quit(message: String)
Link copied to clipboard
Link copied to clipboard
fun removeIgnoredUser(address: String, removeAll: Boolean): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun stop()
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun updateActivity(nowNs: Long)
Link copied to clipboard