mirror of
https://github.com/kierankihn/uno-game.git
synced 2025-12-27 10:23:16 +08:00
feat(network): add stop method to NetworkServer
- Implemented `stop` method in `NetworkServer` to close the acceptor and stop the IO context. - Updated `NetworkServer.h` with corresponding method declaration and documentation.
This commit is contained in:
@@ -86,4 +86,10 @@ namespace UNO::NETWORK {
|
||||
{
|
||||
this->io_context_.run();
|
||||
}
|
||||
|
||||
void NetworkServer::stop()
|
||||
{
|
||||
this->acceptor_.close();
|
||||
this->io_context_.stop();
|
||||
}
|
||||
} // namespace UNO::NETWORK
|
||||
Reference in New Issue
Block a user