MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / Stop

Method Stop

extensions/olcPGEX_Network.h:843–853  ·  view source on GitHub ↗

Stops the server!

Source from the content-addressed store, hash-verified

841
842 // Stops the server!
843 void Stop()
844 {
845 // Request the context to close
846 m_asioContext.stop();
847
848 // Tidy up the context thread
849 if (m_threadContext.joinable()) m_threadContext.join();
850
851 // Inform someone, anybody, if they care...
852 std::cout << "[SERVER] Stopped!\n";
853 }
854
855 // ASYNC - Instruct asio to wait for connection
856 void WaitForClientConnection()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected