public void Listen(Socket sock)
{
...//The Code to Listening and receive
}
while (true)
{
Socket socket = tcpListener.AcceptSocket();
Thread thd = new Thread(Listen(socket));
thd.Start();
ThreadList.add(thd);
if (??)
//all the thread in ThreadList abort
break;
}