summaryrefslogtreecommitdiff
path: root/netio.h
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-09-22 21:25:56 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-09-22 21:25:56 -0600
commitd0ece36e8a041cb3d58194c18d736a0ef9105e75 (patch)
tree01d4f45a761db36838399f65df2b20c2b3beec56 /netio.h
parent042220ed00c1b2642e8c3b7f68b858ec9c1e71d6 (diff)
wip
Diffstat (limited to 'netio.h')
-rw-r--r--netio.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/netio.h b/netio.h
index 53233cb..8d9fa50 100644
--- a/netio.h
+++ b/netio.h
@@ -6,8 +6,8 @@
int netio_listen(uint16_t port);
int netio_accept(int sock);
-int netio_read(int conn, void *buf, size_t count);
-int netio_write(int conn, void *buf, size_t count);
+size_t netio_read(int conn, void *buf, size_t count);
+size_t netio_write(int conn, void *buf, size_t count);
int netio_close(int conn, bool rd, bool wr);
#endif /* _NETIO_H_ */