MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / findClient

Method findClient

src/OpenLoco/src/Network/NetworkServer.cpp:79–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79Client* NetworkServer::findClient(const INetworkEndpoint& endpoint)
80{
81 for (auto& client : _clients)
82 {
83 if (client->connection->getEndpoint().equals(endpoint))
84 {
85 return client.get();
86 }
87 }
88 return nullptr;
89}
90
91void NetworkServer::createNewClient(std::unique_ptr<NetworkConnection> conn, const ConnectPacket& packet)
92{

Callers

nothing calls this directly

Calls 2

equalsMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected