diff options
author | Ian Moffett <ian@osmora.org> | 2024-09-26 14:51:12 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-09-26 14:51:12 -0400 |
commit | 8f3259254cbb51629671e67dd2345c7e23d4823f (patch) | |
tree | 4770f18141f79daa845492c3022a882a171dba2b /lib/include/net | |
parent | 0e2d64f4d50ac288aa4d616727df8d8ec93234ff (diff) |
lib: net: Add message frame handling
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'lib/include/net')
-rw-r--r-- | lib/include/net/stpsession.h | 6 |
1 files changed, 6 insertions, 0 deletions
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_ */ |