MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / descriptiveName

Method descriptiveName

source/game/StarServerClientContext.cpp:98–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98String 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
104void ServerClientContext::registerRpcHandlers(JsonRpcHandlers const& rpcHandlers) {
105 m_rpc.registerHandlers(rpcHandlers);

Callers 4

clientDescriptorMethod · 0.80
reapConnectionsMethod · 0.80
acceptConnectionMethod · 0.80
doDisconnectionMethod · 0.80

Calls 2

toStringFunction · 0.85
strfFunction · 0.85

Tested by

no test coverage detected