856 B
856 B
AOS-2 Network Protocol
This document describes the network protocol used by Ace of Shades 2 for server-client communication.
All communications, whether they be UDP or TCP, use the record-net library for sending packets as serialized records.
When referring to the names of packets, we will assume a common package name of nl.andrewl.aos_core.net
.
Player Connection
This workflow is involved in the establishment of a connection between the client and server.
- Player sends a
PlayerConnectRequestMessage
via TCP, immediately upon opening a socket connection. It contains the player's desiredusername
, and theirudpPort
that they will use to connect. - The server will respond with either a
PlayerConnectRejectMessage
with areason
for the rejection, or aPlayerConnectAcceptMessage
.