Пример #1
0
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;
}	
Пример #2
0
 void operator()(std::list < sigc::connection >::value_type& cnt) {
     cnt.disconnect();
 }