Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public bool AuthenticationCRM(string login, string password)
 {
     Socket.SendSocketCommand(ComandSend.AUTHENTICATION, null, login + ":" + password);
     return(true);
 }