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

Method ServerRconClient

source/server/StarServerRconClient.cpp:11–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace Star {
10
11ServerRconClient::ServerRconClient(UniverseServer* universe, TcpSocketPtr socket)
12 : Thread("RconClient"),
13 m_universe(universe),
14 m_socket(socket),
15 m_packetBuffer(MaxPacketSize),
16 m_stop(true),
17 m_authed(false) {
18 auto& root = Root::singleton();
19 auto cfg = root.configuration();
20
21 m_packetBuffer.setByteOrder(ByteOrder::LittleEndian);
22 m_packetBuffer.setNullTerminatedStrings(true);
23
24 m_rconPassword = cfg->get("rconServerPassword").toString();
25}
26
27ServerRconClient::~ServerRconClient() {
28 stop();

Callers

nothing calls this directly

Calls 6

singletonClass · 0.85
configurationMethod · 0.80
setByteOrderMethod · 0.80
toStringMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected