Browse Source

update

master
zhaohe 2 years ago
parent
commit
7bbbf85482
  1. 3
      iflytop_xsync_protocol.h

3
iflytop_xsync_protocol.h

@ -53,6 +53,7 @@ typedef enum {
kxs_ec_receive_fail = 5,
kxs_ec_setsockopt_rx_timeout_fail = 6,
kxs_ec_lose_connect = 7,
kxs_ec_param_error = 8,
} xs_error_code_t;
static inline const char* xs_error_code_2_str(xs_error_code_t ecode) {
@ -73,6 +74,8 @@ static inline const char* xs_error_code_2_str(xs_error_code_t ecode) {
return "setsockopt rx timeout fail";
case kxs_ec_lose_connect:
return "lose connect";
case kxs_ec_param_error:
return "param error";
default:
return "unknown error";
}

Loading…
Cancel
Save