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 }; }
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 }; }
protected void ShowLiveVehicle(LiveRecognizerVehiclePacketHandle liveRecognizerVehiclePacket) { CrossThreadOperationControl crossAdd = delegate() { string errMsg = ""; }; }