Epicenter_SERVER.FileServer.UploadListener C# (CSharp) Method

UploadListener() private method

private UploadListener ( ) : void
return void
        private void UploadListener()
        {
            // Starting to listen to the incoming connection requests
            listener = new TcpListener(IPAddress.Any, port);
            listener.Start();

            while (isListening)
            {
                TcpClient client = null;
                try
                {
                    client = listener.AcceptTcpClient();
                }
                catch { return; }

                // A Connection request from a client is received, HandleClientComm will take it from here
                owner.ReportIn = "Client connected, will receive the file.";
                Thread clientThread = new Thread(new ParameterizedThreadStart(HandleClientCommUpload));
                clientThread.Start(client);
            }
        }