diff options
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 |