KinectDaemon.Server.ListenForClients C# (CSharp) Method

ListenForClients() private method

private ListenForClients ( ) : void
return void
        private void ListenForClients()
        {
            this._tcpListener.Start();

            try
            {
                while (!IsShuttingDown)
                {
                    //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);
                }
            }
            catch
            {

            }
        }