class

Server

Inherits Packets < ServerHandler < Packets < Reference < Object

Constants

BUFFER_SIZE = 1024 * 1024
KEEP_ALIVE_INTERVAL = 5000.milliseconds
PROTOCOL_VERSION = 47
PROTOCOL_VERSION_S = "1.8.9"

Constructors

new(encryption_enabled : Bool = false, compression : Int32 = -1, keep_alive : Time::Span = 30.seconds)
Source

Instance methods

accept_clients
Source
clients
Source
close(id)
Source
compression
Source
encryption
Source
encryption_enabled
Source
handle(id, packet : Handshaking::S::Handshake)
Source
handle(id, packet : Login::S::LoginStart)
Source
handle(id, packet : Login::S::EncryptionResponse)
Source
handle(id, packet : Status::S::Ping)
Source
handle(id, packet : Play::S::KeepAlive)
Source
keep_alive(id)
Source
keep_alive
Source
once
Source
read(id)
Source
receive
Source
server
Source
start(port : Int32 = 25565)
Source
write(id, packet : RawPacket)
Source

Nested types