From 062454f554b77c86d9eb738d025263e1e7003ebd Mon Sep 17 00:00:00 2001 From: David Timber Date: Tue, 13 Apr 2021 14:52:26 +1000 Subject: 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 --- src/protocol.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/protocol.h') 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 ( -- cgit