mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 03:56:43 +00:00
Codechange: document network related functions/types/variables
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user