このコードスニペットをオンラインで見つけました。while(true)
ただし、このコードでブロッキングがどのように行われるのか理解できません。
private void ListenForClients()
{
this.tcpListener.Start();
while (true)
{
//blocks until a client has connected to the server
TcpClient client = this.tcpListener.AcceptTcpClient();
//create a thread to handle communication
//with connected client
Thread clientThread = new Thread(new ParameterizedThreadStart(HandleClientComm));
clientThread.Start(client);
}
}
誰かが私にそれを説明できますか?+ブレーキング条件を使用することは知ってwhile(true)
いますが、これは私を超えています。