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

Method QueryServer

src/network/network_query.h:46–52  ·  view source on GitHub ↗

* Start to query a server based on an open socket. * @param s The socket to connect with. * @param connection_string The connection string of the server. */

Source from the content-addressed store, hash-verified

44 * @param connection_string The connection string of the server.
45 */
46 static void QueryServer(SOCKET s, std::string_view connection_string)
47 {
48 auto query = std::make_unique<QueryNetworkGameSocketHandler>(s, connection_string);
49 query->SendGameInfo();
50
51 QueryNetworkGameSocketHandler::queries.push_back(std::move(query));
52 }
53
54 static void SendReceive();
55

Callers

nothing calls this directly

Calls 2

push_backMethod · 0.80
SendGameInfoMethod · 0.45

Tested by

no test coverage detected