Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Clients attempting to connect to 1.8-1.12.2 Forge servers will have // this token appended to the hostname in the initial handshake packet. HandshakeHostnameToken = "\000FML\000" // The channel for legacy forge handshakes. LegacyHandshakeChannel = "FML|HS" // The reset packet discriminator. ResetDataDiscriminator = -2 // The acknowledgement packet discriminator. AckDiscriminator = -1 // The Server -> Client Hello discriminator. ServerHelloDiscriminator = 0 // The Client -> Server Hello discriminator. ClientHelloDiscriminator = 1 // The Mod List discriminator. ModListDiscriminator = 2 // The Registry discriminator. RegistryDiscriminator = 3 )
Variables ¶
View Source
var LegacyHandshakeResetData = []byte{ResetDataDiscriminator & 0xff, 0}
LegacyHandshakeResetData is the payload for the reset packet.
Functions ¶
func HandshakePacketDiscriminator ¶
HandshakePacketDiscriminator returns the discriminator from the FML|HS packet (the first byte in the data).
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package modinfo provides mod information used in Forge ping responses.
|
Package modinfo provides mod information used in Forge ping responses. |
Click to show internal directories.
Click to hide internal directories.