From 109ffe9a777658936a38d0c146579a67c60a0d17 Mon Sep 17 00:00:00 2001 From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674> Date: 星期四, 11 五月 2017 17:48:48 +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