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

The Client

mega12345mega edited this page Mar 6, 2021 · 2 revisions

To create a client, just instantiate a client object:

new Client(PacketHandler packetHandler, String ip, int port)

The ip field is optional and defaults to 127.0.0.1

Client extends Connection, so use the same methods as Connection to send messages.

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

Client.timeout = 5000 for a 5 second timeout

Clone this wiki locally