void Server::processMessage(sf::Packet & p, std::list<Client>::iterator & client) { std::string message; p >> message; if (message == "disco") client->disconnect(); else if (message == "shutdown") mustShutDown_ = true; else std::cout << "Unknow message received : " << message << std::endl; }
void operator()(std::list < sigc::connection >::value_type& cnt) { cnt.disconnect(); }