public void getDeviceList() { Thread.Sleep(100); string myHost = Dns.GetHostName(); string myIP = GetIPAddress(myHost); Socket.Connect(myIP, true); //Socket.Connect(); Socket.SendSocketCommand(ComandSend.GET_DEVICE_LIST, null, null); Socket.OnReceiveMessage += new OnReceive(OnReceivedData); // Socket.OnConnectErrorMessage += new OnConnectError(OnConnectError); Thread.Sleep(100); }
public bool AuthenticationCRM(string login, string password) { Socket.SendSocketCommand(ComandSend.AUTHENTICATION, null, login + ":" + password); return(true); }