diff options
author | mrfoxygmfr <mrfoxygmfr@sch9.ru> | 2025-05-21 02:34:56 +0300 |
---|---|---|
committer | mrfoxygmfr <mrfoxygmfr@sch9.ru> | 2025-05-21 02:34:56 +0300 |
commit | af138ab46ef4dd303d873c05542bb434859225a7 (patch) | |
tree | 5fa5daaea90108a943241f7728ba4144f3a951e5 /lib/net/common.h | |
parent | 7e0a1e2904c03c8550c8117b43f4d54a3d742258 (diff) |
feat(lib/net): implement read and write for connection
Diffstat (limited to 'lib/net/common.h')
-rw-r--r-- | lib/net/common.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 |