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

Method stop

source/core/StarTcp.cpp:173–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173void TcpServer::stop() {
174 m_listenSocket->shutdown();
175 m_callbackThread.finish();
176 m_listenSocket->close();
177}
178
179bool TcpServer::isListening() const {
180 return m_listenSocket->isActive();

Callers 6

makePaneCallbacksMethod · 0.45
shutdownMethod · 0.45
changeStateMethod · 0.45
updateRunningMethod · 0.45
TESTFunction · 0.45
TESTFunction · 0.45

Calls 3

shutdownMethod · 0.45
finishMethod · 0.45
closeMethod · 0.45

Tested by 2

TESTFunction · 0.36
TESTFunction · 0.36