예제 #1
0
 void listen()
 {
   server = System.Net.Sockets.TcpListener.Create(port);
   server.Start();
   Console.Write($"Listening at {port}...");
   do
   {
     var serverside_client = server.AcceptTcpClient();
     var sender = new MsgSender(serverside_client);
     senders.Add(sender);
     sender.Start();
     Console.WriteLine("\nClient connected");
   } while (true);
 }