Stops the server!
| 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() |
nothing calls this directly
no outgoing calls
no test coverage detected