diff options
author | David Timber <mieabby@gmail.com> | 2021-04-13 14:52:26 +1000 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2021-04-13 14:52:26 +1000 |
commit | 062454f554b77c86d9eb738d025263e1e7003ebd (patch) | |
tree | 1966f1e0daa583d57342d943b1996d8ce9b01025 /src/protocol.h | |
parent | f91419f6b3400a6b73f7d2b3c7b8044b6aa490db (diff) |
Debug and impl htbt
* Add debug prints in htbt
* Add `prne_htbt_op_tostr()`
* Add "Lock Matrix" to throttle hover request from CNC TXT REC and NYBIN
race condition
* Fix bug where htbt slave does not reset socket operation timeout timer
when there's multiple frames in the line
* Reserve `PRNE_HTBT_OP_GET_BIN` and `PRNE_HTBT_OP_BIN` for future impl
Diffstat (limited to 'src/protocol.h')
-rw-r--r-- | src/protocol.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/protocol.h b/src/protocol.h index 12b8015..cfb68a3 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -163,6 +163,7 @@ typedef enum { */ PRNE_HTBT_OP_RUN_BIN, /* STDIO Frame + * TODO * * uint1_t err : 0 - stdin/stdout, 1 - stderr * uint1_t fin @@ -170,6 +171,21 @@ typedef enum { * uint12_t len */ PRNE_HTBT_OP_STDIO, + /* Get Binary Operation + * TODO + * + * uint8_t arch + * uint8_t rsv + */ + PRNE_HTBT_OP_GET_BIN, + /* Binary Frame + * TODO + * + * uint1_t fin + * uint3_t rsv + * uint12_t len + */ + PRNE_HTBT_OP_BIN, NB_PRNE_HTBT_OP } prne_htbt_op_t; @@ -320,6 +336,8 @@ bool prne_net_ep_set_ipv6 ( const uint16_t port, prne_net_endpoint_t *out); +const char *prne_htbt_op_tostr (const prne_htbt_op_t x); + void prne_htbt_init_msg_head (prne_htbt_msg_head_t *mh); void prne_htbt_free_msg_head (prne_htbt_msg_head_t *mh); bool prne_htbt_eq_msg_head ( |