Exemple #1
0
		// EndPoint::AdvertiseHandler implementation
		void onConnect(Host& host, InStream& stream)
		{
			printf("Connect: %s\n", host.toString().c_str());
			connections.push_back(new Connection(*this, stream, host));
			// show hosts & channels
			printHosts();
			printChannels();
		}