Codechange: document network related functions/types/variables

This commit is contained in:
Rubidium
2026-03-08 13:29:09 +01:00
committed by rubidium42
parent 856a02ae53
commit 48a8903d85
22 changed files with 269 additions and 50 deletions
+8
View File
@@ -857,6 +857,10 @@ NetworkRecvStatus ServerNetworkAdminSocketHandler::Receive_ADMIN_JOIN_SECURE(Pac
return this->SendAuthRequest();
}
/**
* Send the client a request to authenticate.
* @return The state the network should have.
*/
NetworkRecvStatus ServerNetworkAdminSocketHandler::SendAuthRequest()
{
this->status = ADMIN_STATUS_AUTHENTICATE;
@@ -871,6 +875,10 @@ NetworkRecvStatus ServerNetworkAdminSocketHandler::SendAuthRequest()
return NETWORK_RECV_STATUS_OKAY;
}
/**
* Send the client the message to enable encryption.
* @return The state the network should have.
*/
NetworkRecvStatus ServerNetworkAdminSocketHandler::SendEnableEncryption()
{
if (this->status != ADMIN_STATUS_AUTHENTICATE) return this->SendError(NetworkErrorCode::NotExpected);