Example #1
0
        private void SocketConnect()
        {
            wbConnect = false;
            try
            {
                client = new TCPControl(hostIP, hostPort);
                m_ThreadATLTask.SettingClient(client);

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