From f2327d66d762a2279bf7b725a818a17a213e9e0b Mon Sep 17 00:00:00 2001
From: pans <pans@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期三, 09 八月 2017 14:57:48 +0800
Subject: [PATCH] add RemoteMethod.capnp etc.
---
FaceServer/ev_proto.h | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/FaceServer/ev_proto.h b/FaceServer/ev_proto.h
index 2f1bed4..469ca52 100644
--- a/FaceServer/ev_proto.h
+++ b/FaceServer/ev_proto.h
@@ -56,6 +56,9 @@
int16_t cmd; // EVPCommand::EVPC
uint32_t size; // sizeof(EVPHeader)+sizeof(subcmd)
+ void hton();
+ void ntoh();
+
EVPHeader() : _padding1(0), proto(EVPProto::EVPP__FIRST), cmd(EVPCommand::EVPC__FIRST), size(8)
{}
};
@@ -63,12 +66,18 @@
struct EVP_Status
{
int16_t status;
+
+ void hton();
+ void ntoh();
};
struct EVP_VariableBuffer
{
int16_t type;
uint8_t buff[0];
+
+ void hton();
+ void ntoh();
};
//#todo
--
Gitblit v1.8.0