public RecognizerClientConnection(Socket socket)
        {
            string errMessage = "";

            Ip = ((IPEndPoint) socket.RemoteEndPoint).Address.ToString();
            Port = ((IPEndPoint)socket.RemoteEndPoint).Port;
            RecognizerInfo = RecognizerBusiness.Instance.GetRecognizerInfoByRecognizerIP(ref errMessage, Ip);
            _networkStream = new NetworkStream(socket);
            LiveRecognizerEventPacketHandle = new LiveRecognizerEventPacketHandle();
            LiveRecognizerFacePacketHandle = new LiveRecognizerFacePacketHandle();
            LiveRecognizerVehiclePacketHandle = new LiveRecognizerVehiclePacketHandle();
            _handlers = new IPacketHandler[] { LiveRecognizerEventPacketHandle, LiveRecognizerFacePacketHandle, LiveRecognizerVehiclePacketHandle };
        }
示例#2
0
        public RecognizerClientConnection(Socket socket)
        {
            string errMessage = "";

            Ip             = ((IPEndPoint)socket.RemoteEndPoint).Address.ToString();
            Port           = ((IPEndPoint)socket.RemoteEndPoint).Port;
            RecognizerInfo = RecognizerBusiness.Instance.GetRecognizerInfoByRecognizerIP(ref errMessage, Ip);
            _networkStream = new NetworkStream(socket);
            LiveRecognizerEventPacketHandle   = new LiveRecognizerEventPacketHandle();
            LiveRecognizerFacePacketHandle    = new LiveRecognizerFacePacketHandle();
            LiveRecognizerVehiclePacketHandle = new LiveRecognizerVehiclePacketHandle();
            _handlers = new IPacketHandler[] { LiveRecognizerEventPacketHandle, LiveRecognizerFacePacketHandle, LiveRecognizerVehiclePacketHandle };
        }
示例#3
0
        protected void ShowLiveVehicle(LiveRecognizerVehiclePacketHandle liveRecognizerVehiclePacket)
        {
            CrossThreadOperationControl crossAdd = delegate()
            {
                string errMsg = "";

            };
        }