summaryrefslogtreecommitdiff
path: root/9psrv.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-09-17 09:38:06 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-09-17 12:38:18 -0600
commit47b2f4c4982fb5f063e9e83c524b2e63abaa58c4 (patch)
treef3f1727a36b79927e105415d650c53532489ba07 /9psrv.c
parenta3c2e3bb9092f1d17671c22fd7bf5c0de9b61c3a (diff)
wip
Diffstat (limited to '9psrv.c')
-rw-r--r--9psrv.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/9psrv.c b/9psrv.c
new file mode 100644
index 0000000..e120eff
--- /dev/null
+++ b/9psrv.c
@@ -0,0 +1,13 @@
+#include "coroutine.h"
+#include "net9p.h"
+
+int main() {
+ coroutine_init();
+
+ net9p_listen_stack_t stack = {0};
+ coroutine_add(net9p_listen_cr, &stack);
+
+ for (;;) {
+ coroutine_task();
+ }
+}