Skip to content
This repository was archived by the owner on Mar 21, 2022. It is now read-only.

The Server

mega12345mega edited this page Mar 6, 2021 · 2 revisions

To create a server, just instantiate a server object:

new Server(ConnectHandler connectHandler, PacketHandler packetHandler, int port)

When a Client connects to a Server the connectHandler.handleConnection(ServerConnection connection) method is called.

To set a timeout on packet replies, modify the static timeout variable:

Server.timeout = 5000 for a 5 second timeout

Clone this wiki locally