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 };
        }
Example #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 };
        }
Example #3
0
        protected void ShowLiveEvent(LiveRecognizerEventPacketHandle liveRecognizerEventPacket)
        {
            CrossThreadOperationControl crossAdd = delegate()
            {
                string errMsg = "";

            };
        }