This commit is contained in:
2024-05-20 20:23:38 -07:00
commit 578313417b
9 changed files with 354 additions and 0 deletions

16
server.fnl Normal file
View File

@ -0,0 +1,16 @@
(local socket (require :socket))
(local handle-client (. (require :client-handler) :handle-client))
(local port 8080)
(local server (socket.tcp))
(server:bind "*" port)
(server:listen)
(while true
(local client (server:accept))
(local co (coroutine.create (fn [] (handle-client client))))
(coroutine.resume co))