From eb69d9c33b307bfc2d6c7f46a210f98c5fa306c5 Mon Sep 17 00:00:00 2001 From: houxiao <houxiao@454eff88-639b-444f-9e54-f578c98de674> Date: 星期五, 11 八月 2017 14:31:01 +0800 Subject: [PATCH] bug fix for client --- VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFuncClient.h | 31 +++++++++++++++---------------- 1 files changed, 15 insertions(+), 16 deletions(-) diff --git a/VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFuncClient.h b/VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFuncClient.h index bff5df3..56db96c 100644 --- a/VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFuncClient.h +++ b/VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFuncClient.h @@ -5,33 +5,32 @@ #ifndef RTSPNATIVECODEC_REMOTEMETHODCLIENT_H #define RTSPNATIVECODEC_REMOTEMETHODCLIENT_H -#include <iostream> +#include <string> #include <capnp/ez-rpc.h> -#include "RemoteMethod.proto.h" +#include "RemoteMethod.capnp.h" #include "CameraWrapperServer.h" -const RtspFaceView::Client getRtspFaceViewClient(); +void startRemoteServer(); -class RtspFaceViewClient{ +class RtspFaceViewClient : RtspFaceView::Client +{ public: - RtspFaceViewClient(); - ~RtspFaceViewClient(); + RtspFaceViewClient(); - RtspFaceView::GetFaceListResults::Reader getFaceList(int cameraIndex); - RtspFaceView::GetFaceListResults::Reader getFaceImages(int cameraIndex); - void setFaceLable(int cameraIndex,int trackId,std::string label); + ~RtspFaceViewClient() {}; + + ::kj::WaitScope &getWaitScope(); private: - capnp::EzRpcClient rpcClient; - RtspFaceDetect::Client client; + capnp::EzRpcClient rpcClient; }; -class RtspFaceDetectImpl final : public RtspFaceDetect::Server{ -public: - RtspFaceDetectImpl(); - ~RtspFaceDetectImpl(); +RtspFaceViewClient* getRtspFaceViewClient(); - virtual ::kj::Promise<void> fireFaceCountListener(FireFaceCountListenerContext context) override ; +class RtspFaceDetectImpl final : public RtspFaceDetect::Server +{ +public: + virtual ::kj::Promise<void> fireFaceCountListener(FireFaceCountListenerContext context) override; }; #endif //RTSPNATIVECODEC_REMOTEMETHODCLIENT_H -- Gitblit v1.8.0