From 8f3259254cbb51629671e67dd2345c7e23d4823f Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 26 Sep 2024 14:51:12 -0400 Subject: lib: net: Add message frame handling Signed-off-by: Ian Moffett --- lib/include/net/stpsession.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/include/net/stpsession.h') diff --git a/lib/include/net/stpsession.h b/lib/include/net/stpsession.h index 351be26..773d57b 100644 --- a/lib/include/net/stpsession.h +++ b/lib/include/net/stpsession.h @@ -91,4 +91,10 @@ struct msg_frame { uint16_t len; uint8_t payload[MESSAGE_SIZE]; }; + +int send_frame(int client_fd, void *data, size_t len, + const unsigned char *session_key); +int recv_frame(int client_fd, size_t len, const unsigned char *session_key, + void *res); + #endif /* STP_SESSION_H_ */ -- cgit v1.2.3