| 96 | } |
| 97 | |
| 98 | String ServerClientContext::descriptiveName() const { |
| 99 | RecursiveMutexLocker locker(m_mutex); |
| 100 | String hostName = m_remoteAddress ? toString(*m_remoteAddress) : "local"; |
| 101 | return strf("'{}' <{}> ({})", m_playerName, m_clientId, hostName); |
| 102 | } |
| 103 | |
| 104 | void ServerClientContext::registerRpcHandlers(JsonRpcHandlers const& rpcHandlers) { |
| 105 | m_rpc.registerHandlers(rpcHandlers); |
no test coverage detected