summaryrefslogtreecommitdiff
path: root/netio.h
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-09-22 02:52:42 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-09-22 02:52:42 -0600
commit042220ed00c1b2642e8c3b7f68b858ec9c1e71d6 (patch)
tree8b7daaa21c2d5f29f7cede38d07b6c0306071090 /netio.h
parente2a29828cdd5c68f70ee771bb9f73c4b03c59529 (diff)
finish(?) netio_posix
Diffstat (limited to 'netio.h')
-rw-r--r--netio.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/netio.h b/netio.h
index cb2e603..53233cb 100644
--- a/netio.h
+++ b/netio.h
@@ -4,11 +4,10 @@
#include <stdint.h>
#include <stdbool.h>
-void netio_init(void);
-
+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);
int netio_close(int conn, bool rd, bool wr);
-#endef /* _NETIO_H_ */
+#endif /* _NETIO_H_ */