StartListeningForUpload() public method

public StartListeningForUpload ( ) : void
return void
        private void btnFileUpload_Click(object sender, EventArgs e)
        {
            int transfPort = 0;

            if (!Int32.TryParse(txtTransferPort.Text, out transfPort))
            {
                MessageBox.Show("Please put in a valid port before requesting a file.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            if (String.IsNullOrEmpty(txtLocation.Text))
            {
                return;
            }

            FileUploadDisplay display = new FileUploadDisplay(this, txtLocation.Text);

            if (display.ShowDialog() == DialogResult.OK)
            {
                FileServer fs = new FileServer(this, ip, transfPort, String.Empty, _toUpload_local);
                fs.StartListeningForUpload();

                SendASCII("GETREADY_RECV_FILE<%SEP%>" + _toUpload_remote + "<%SEP%>" + txtTransferPort.Text);
            }
        }
        private void btnFileUpload_Click(object sender, EventArgs e)
        {
            int transfPort = 0;
            if (!Int32.TryParse(txtTransferPort.Text, out transfPort))
            {
                MessageBox.Show("Please put in a valid port before requesting a file.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            if (String.IsNullOrEmpty(txtLocation.Text))
                return;

            FileUploadDisplay display = new FileUploadDisplay(this, txtLocation.Text);

            if (display.ShowDialog() == DialogResult.OK)
            {
                FileServer fs = new FileServer(this, ip, transfPort, String.Empty, _toUpload_local);
                fs.StartListeningForUpload();

                SendASCII("GETREADY_RECV_FILE<%SEP%>" + _toUpload_remote + "<%SEP%>" + txtTransferPort.Text);
            }
        }