From 0e32d241f9ddd7e202879230585cb939dd3877b2 Mon Sep 17 00:00:00 2001 From: houxiao <houxiao@454eff88-639b-444f-9e54-f578c98de674> Date: 星期二, 25 四月 2017 13:00:34 +0800 Subject: [PATCH] bug fix --- 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