Example #1
0
        /********************************************************************************/

        private void ctlClientOpen_Click(object sender, EventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;

            objClient.Clear();
            objClient.LogFile = ctlLogFile.Text;
            objClient.Open(ctlClientHost.Text, System.Int32.Parse(ctlClientPort.Text), false, ctlServerVersion.Checked ? true : false);

            if (GetClientResult() == 0)
            {
                ctlClientSend.Enabled    = true;
                ctlClientClose.Enabled   = true;
                ctlClientOpen.Enabled    = false;
                ctlClientCommand.Enabled = true;
                ctlClientHost.Enabled    = false;
                ctlClientPort.Enabled    = false;
            }

            Cursor.Current = Cursors.Default;
        }
Example #2
0
        /********************************************************************************/

        private void ctlServerListenStart_Click(object sender, EventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;

            objServer.Clear();
            objServer.LogFile = ctlLogFile.Text;

            objServer.IOTimeout = 100;
            objServer.Open("localhost", System.Int32.Parse(ctlServerPort.Text), true, ctlServerVersion.Checked ? true : false);

            if (GetServerResult() == 0)
            {
                ctlServerListenStart.Enabled = false;
                ctlServerListenStop.Enabled  = true;
                ctlServerPort.Enabled        = false;
                ctlServerVersion.Enabled     = false;
                Timer.Enabled = true;
            }

            Cursor.Current = Cursors.Default;
        }