10 #include "json/json.h"
std::basic_string_view< std::byte > ContiguousByteBufferView
std::map< AString, AString > AStringMap
A string dictionary, used for key-value pairs.
bool m_Errored
True if the Forge handshake is in an errored state.
void AugmentServerListPing(cClientHandle &a_Client, Json::Value &ResponseValue)
Add the registered Forge mods to the server ping list packet.
void HandleClientHello(cClientHandle &a_Client, ContiguousByteBufferView a_Data)
void SendServerHello(cClientHandle &a_Client)
Send the ServerHello packet in the Forge handshake.
AStringMap ParseModList(ContiguousByteBufferView a_Data)
Parse the client ModList packet of installed Forge mods and versions.
void SetError(const AString &message)
Set errored state to prevent further handshake message processing.
void BeginForgeHandshake(cClientHandle &a_Client)
Begin the Forge Modloader Handshake (FML|HS) sequence.
void HandleModList(cClientHandle &a_Client, ContiguousByteBufferView a_Data)
bool IsForgeClient
True if the client advertised itself as a Forge client.
void HandleHandshakeAck(cClientHandle &a_Client, ContiguousByteBufferView a_Data)
void DataReceived(cClientHandle &a_Client, ContiguousByteBufferView a_Data)
Process received data from the client advancing the Forge handshake.