From af138ab46ef4dd303d873c05542bb434859225a7 Mon Sep 17 00:00:00 2001 From: mrfoxygmfr Date: Wed, 21 May 2025 02:34:56 +0300 Subject: feat(lib/net): implement read and write for connection --- lib/net/common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/net/common.h') diff --git a/lib/net/common.h b/lib/net/common.h index f7c4c9a..553117d 100644 --- a/lib/net/common.h +++ b/lib/net/common.h @@ -14,6 +14,8 @@ typedef struct { struct sockaddr_in* get_addr(const char* addr, const char* port); int conn_configure_tcpalive(conn_t* conn); +char* conn_read(conn_t* conn, size_t* sz); +void conn_write(conn_t* conn, const char* value, size_t sz); void conn_close(conn_t* conn); #endif // NET__COMMON_H -- cgit mrf-deployment