10 #include "json/json.h"
void AugmentServerListPing(Json::Value &ResponseValue)
Add the registered Forge mods to the server ping list packet.
void HandleHandshakeAck(cClientHandle *a_Client, const char *a_Data, size_t a_Size)
AStringMap ParseModList(const char *a_Data, size_t a_Size)
Parse the client ModList packet of installed Forge mods and versions.
void DataReceived(cClientHandle *a_Client, const char *a_Data, size_t a_Size)
Process received data from the client advancing the Forge handshake.
void HandleModList(cClientHandle *a_Client, const char *a_Data, size_t a_Size)
cClientHandle * m_Client
The client handle undergoing this Forge handshake.
void SendServerHello()
Send the ServerHello packet in the Forge handshake.
bool m_Errored
True if the Forge handshake is in an errored state.
void HandleClientHello(cClientHandle *a_Client, const char *a_Data, size_t a_Size)
std::map< AString, AString > AStringMap
A string dictionary, used for key-value pairs.
bool m_IsForgeClient
True if the client advertised itself as a Forge client.
cForgeHandshake(cClientHandle *client)
AString m_Name
Values saved from BeginForgeHandshake() for continuing the normal handshake after Forge completes...
void SetError(const AString &message)
Set errored state to prevent further handshake message processing.
void BeginForgeHandshake(const AString &a_Name, const cUUID &a_UUID, const Json::Value &a_Properties)
Begin the Forge Modloader Handshake (FML|HS) sequence.