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

Method AllowConnection

src/network/network_admin.cpp:91–94  ·  view source on GitHub ↗

* Whether a connection is allowed or not at this moment. * @return Whether the connection is allowed. */ static */

Source from the content-addressed store, hash-verified

89 * @return Whether the connection is allowed.
90 */
91/* static */ bool ServerNetworkAdminSocketHandler::AllowConnection()
92{
93 return _settings_client.network.AdminAuthenticationConfigured() && ServerNetworkAdminSocketHandler::CanAllocateItem();
94}
95
96/** Send the packets for the server sockets. */
97/* static */ void ServerNetworkAdminSocketHandler::Send()

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected