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 ShowLiveEvent(LiveRecognizerEventPacketHandle liveRecognizerEventPacket) { CrossThreadOperationControl crossAdd = delegate() { string errMsg = ""; }; }