UdpServerConnection

Identified player UDP connection.

Functions

Link copied to clipboard
abstract fun disconnect()
Link copied to clipboard
abstract fun getKeepAlive(): Long
Gets the timestamp of the last received keep-alive signal from this connection.
Link copied to clipboard
@NotNull
abstract fun getPlayer(): @NotNull VoiceServerPlayer
Gets the VoiceServerPlayer associated with this connection.
Link copied to clipboard
abstract fun getRemoteAddress(): @NotNull InetSocketAddress
Link copied to clipboard
abstract fun getSecret(): @NotNull UUID
Link copied to clipboard
abstract fun getSentKeepAlive(): Long
Gets the timestamp of the last sent keep-alive signal to this connection.
Link copied to clipboard
Link copied to clipboard
abstract fun isConnected(): Boolean
Link copied to clipboard
abstract fun sendPacket(p: Packet<out Any>)
Link copied to clipboard
abstract fun setRemoteAddress(p: @NotNull InetSocketAddress)
Link copied to clipboard
abstract fun setSentKeepAlive(keepAlive: Long)
Sets the timestamp of the last sent keep-alive signal to this connection.