//
|
// Created by pansen on 2017/8/4.
|
//
|
|
#ifndef RTSPNATIVECODEC_REMOTEMETHODCLIENT_H
|
#define RTSPNATIVECODEC_REMOTEMETHODCLIENT_H
|
|
#include <capnp/message.h>
|
#include <capnp/serialize-packed.h>
|
#include <capnp/ez-rpc.h>
|
#include "RemoteMethod.capnp.h"
|
|
//
|
class RtspFaceViewClient
|
{
|
public:
|
RtspFaceViewClient();
|
RtspFaceView::Client& getClient();
|
~RtspFaceViewClient() {};
|
|
::kj::WaitScope &getWaitScope();
|
|
capnp::EzRpcClient* getEzRpcClient();
|
private:
|
RtspFaceView::Client *client;
|
capnp::EzRpcClient* rpcClient;
|
};
|
|
void startRemoteServer();
|
|
RtspFaceViewClient* getRtspFaceViewClient();
|
|
class RtspFaceDetectImpl final : public RtspFaceDetect::Server
|
{
|
public:
|
virtual ::kj::Promise<void> fireFaceCountListener(FireFaceCountListenerContext context) override;
|
};
|
|
#endif //RTSPNATIVECODEC_REMOTEMETHODCLIENT_H
|