MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SendEnableEncryption

Method SendEnableEncryption

src/network/network_admin.cpp:834–843  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

832}
833
834NetworkRecvStatus ServerNetworkAdminSocketHandler::SendEnableEncryption()
835{
836 if (this->status != ADMIN_STATUS_AUTHENTICATE) return this->SendError(NETWORK_ERROR_NOT_EXPECTED);
837
838 auto p = std::make_unique<Packet>(this, ADMIN_PACKET_SERVER_ENABLE_ENCRYPTION);
839 this->authentication_handler->SendEnableEncryption(*p);
840 this->SendPacket(std::move(p));
841
842 return NETWORK_RECV_STATUS_OKAY;
843}
844
845NetworkRecvStatus ServerNetworkAdminSocketHandler::Receive_ADMIN_AUTH_RESPONSE(Packet &p)
846{

Callers 2

Calls 2

SendErrorMethod · 0.95
SendPacketMethod · 0.45

Tested by

no test coverage detected