private void button3_Click(object sender, EventArgs e) { SDKClient client = new SDKClient("192.168.3.195", 10261, "qcu1", "", "lq", "lq", 0); while (true) { var flag = client.openConnection(); var msg = client.getMessage(); if (msg == string.Empty) { break; } Debug.WriteLine(msg); } }