From 307706a63521650ca1cc7eebff0a931b432539c3 Mon Sep 17 00:00:00 2001
From: pans <pans@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期三, 11 一月 2017 19:09:50 +0800
Subject: [PATCH] faceAPI整合
---
RtspFace/ev_server.h | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/RtspFace/ev_server.h b/RtspFace/ev_server.h
index 3960933..aab56d0 100644
--- a/RtspFace/ev_server.h
+++ b/RtspFace/ev_server.h
@@ -3,6 +3,7 @@
#include <stddef.h>
#include <stdint.h>
+#include "ev_proto.h"
#define SERVER_PORT 5432
#define REUSEADDR_ON 1
@@ -25,6 +26,13 @@
sendBuff(nullptr), sendBuffSize(0), deleteSendBuff(false)
{
}
+
+ EVClientStub(const uint8_t* _recvBuff, size_t _recvBuffSize) :
+ id(-1),
+ recvBuff(_recvBuff), recvBuffSize(_recvBuffSize),
+ sendBuff(nullptr), sendBuffSize(0), deleteSendBuff(false)
+ {
+ }
};
typedef bool (*evclient_proc_t)(EVClientStub& client);
@@ -32,4 +40,7 @@
int server_main(int argc, char **argv);
+void ev_send_packet(EVClientStub& client);
+void ev_send_status_packet(EVClientStub& client, EVPStatus::EVPS status);
+
#endif
--
Gitblit v1.8.0