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); } }
public void SettingClient(TCPControl client) { t_client = client; recvData = t_client.client.GetStream(); }