From 8ae41297e21c96793ab1f2c8d1abcc5f274501e2 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Sun, 22 Sep 2024 00:56:20 -0600 Subject: wip netio --- netio.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 netio.h (limited to 'netio.h') diff --git a/netio.h b/netio.h new file mode 100644 index 0000000..cb2e603 --- /dev/null +++ b/netio.h @@ -0,0 +1,14 @@ +#ifndef _NETIO_H_ +#define _NETIO_H_ + +#include +#include + +void netio_init(void); + +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_ */ -- cgit v1.2.3-2-g168b