From c41c02a52bb12a5724f4d9e9d2e9a33167de88a4 Mon Sep 17 00:00:00 2001
From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期一, 22 五月 2017 17:02:19 +0800
Subject: [PATCH]
---
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