From d0ece36e8a041cb3d58194c18d736a0ef9105e75 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Sun, 22 Sep 2024 21:25:56 -0600 Subject: wip --- srv9p.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'srv9p.c') diff --git a/srv9p.c b/srv9p.c index 489b33e..c7d1dde 100644 --- a/srv9p.c +++ b/srv9p.c @@ -1,11 +1,17 @@ #include #include + #include "coroutine.h" #include "net9p.h" int main() { - if (!coroutine_add(net9p_listen_cr, NULL)) - error(1, 0, "coroutine_add(net9p_listen_cr, NULL)"); + int sock = netio_listen(9000); + if (sock < 0) + error(1, -sock, "netio_listen"); + + for (int i = 0; i < 8; i++) + if (!coroutine_add(net9p_cr, NULL)) + error(1, 0, "coroutine_add(net9p_cr, NULL)"); coroutine_main(); return 1; -- cgit v1.2.3-2-g168b