Esempio n. 1
0
        protected AvlTcpCommArgs OnDeviceCnnected(string imei)
        {
            var commArgs = new AvlTcpCommArgs(imei);
            if (this.DeviceConnected != null)
                this.DeviceConnected(this, commArgs);

            return commArgs;
        }
Esempio n. 2
0
        protected AvlTcpCommArgs OnDeviceCnnected(string imei)
        {
            var commArgs = new AvlTcpCommArgs(imei);

            if (this.DeviceConnected != null)
            {
                this.DeviceConnected(this, commArgs);
            }

            return(commArgs);
        }
Esempio n. 3
0
        static void listener_DeviceConnected(object sender, AvlTcpCommArgs e)
        {
            e.Accept(); //TODO:filtering here

            Console.WriteLine("Imei: {0}, Accepted: {1}", e.Imei, e.CommunicationAccepted);
        }