From a0092014ee12abf06edb1788b189cc7c57336063 Mon Sep 17 00:00:00 2001
From: chenke <chenke@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期三, 09 八月 2017 13:42:00 +0800
Subject: [PATCH] Reverse merged revision(s) 988-987 from VisitFace/RtspNativeCodec: JsonCpp和CapnpProtocol功能初步实现 ........

---
 VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFunc.h |   23 ++++++++++++++++++++---
 1 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFunc.h b/VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFunc.h
index 487cd8d..83c55c0 100644
--- a/VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFunc.h
+++ b/VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFunc.h
@@ -6,13 +6,30 @@
 #define RTSPNATIVECODEC_REMOTEFUNC_H
 
 #include <iostream>
+#include <capnp/ez-rpc.h>
 #include "RemoteMethod.proto.h"
-#include "CameraWrapperServer.h"
 
-class RemoteFunc{
+//::capnp::Capability::Server
+template <class T> class RemoteServer{
 public:
+//    RemoteServer(std::string host, int port, capnp::EzRpcServer rpcServer) : rpcServer(rpcServer) {
+//        this->rpcServer(kj::heap<T>(),host, port);
+//                //.rpcServer(kj::heap<T>(),host, port);
+//    };
+    RemoteServer(std::string host,int port):host(host),port(port){};
+    ~RemoteServer(){};
 
+    bool start();
+    void stop();
+    bool running;
+private:
+    std::string host;
+    int port;
+
+    static void *rServer_thd(void *arg);
+
+    pthread_t server_thd;
+    pthread_mutex_t mutexSerevr;
 };
-
 #endif //RTSPNATIVECODEC_REMOTEFUNC_H
 

--
Gitblit v1.8.0