Class ServerData
java.lang.Object
org.cloudburstmc.netty.channel.nethernet.signaling.ServerData
The server data a LAN discovery reply carries, hex encoded behind its length. Clients read one of several layouts
by its version, and a request does not say which, so a server answers once in each of
VERSIONS.-
Method Summary
-
Method Details
-
decode
Reads the server data a reply carries, in any ofVERSIONS. A field a version leaves out keeps itsPongData.Builderdefault.- Parameters:
payload- The reply after its header: the length, then the hex- Returns:
- The status, or null for a version this does not know
- Throws:
IndexOutOfBoundsException- If the data is cut shortIllegalArgumentException- If the hex is malformed
-