예제 #1
0
        private void btnConnect_Click(object sender, EventArgs e)
        {
            string szIP = txtIP1.Text + "." + txtIP2.Text + "." + txtIP3.Text + "." + txtIP4.Text;

            CCTcpClientProtocol protocol = new CCTcpClientProtocol( szIP , int.Parse(txtPort.Text) );
            //protocol.Broadcast = true;
            m_TCPInterface.Protocol = protocol;

            m_TCPInterface.Create();
            //if (m_TCPInterface.Connect())
            //    cbConnect.CheckState = CheckState.Checked;
        }
예제 #2
0
        private void btnConnect_Click(object sender, EventArgs e)
        {
            string szIP = txtIP1.Text + "." + txtIP2.Text + "." + txtIP3.Text + "." + txtIP4.Text;

            CCTcpClientProtocol protocol = new CCTcpClientProtocol(szIP, int.Parse(txtPort.Text));

            //protocol.Broadcast = true;
            m_TCPInterface.Protocol = protocol;

            m_TCPInterface.Create();
            //if (m_TCPInterface.Connect())
            //    cbConnect.CheckState = CheckState.Checked;
        }