From 84c967c436f9e643fe30de2f99e9f88d80fe1bf0 Mon Sep 17 00:00:00 2001 From: sujinwen <sujinwen@454eff88-639b-444f-9e54-f578c98de674> Date: 星期一, 24 七月 2017 20:52:55 +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