Exemplo n.º 1
0
        private void SocketConnect()
        {
            wbConnect = false;
            try
            {
                client = new TCPControl(hostIP.Text, int.Parse(hostPort.Text));
                m_ThreadATLTask.SettingClient(client);

                this.panel2.BackColor = Color.Green;
                Connect_OK_Timer();
                wbConnect = true;
            }
            catch (Exception err)
            {
                wbConnect = false;
                this.Log.WriteError($"[{MethodBase.GetCurrentMethod().Name}]:{err.Message}", err);
            }
        }
Exemplo n.º 2
0
 public void SettingClient(TCPControl client)
 {
     t_client = client;
     recvData = t_client.client.GetStream();
 }