net.pack_addr, SO_REUSEADDR

This commit is contained in:
2025-12-21 17:28:19 +01:00
parent d55ca11658
commit 7c23e57ec0
3 changed files with 45 additions and 31 deletions

View File

@@ -1,5 +1,6 @@
func main[] : I64
let s: I64 = net.listen(8000)
let host: I64 = net.pack_addr(127, 0, 0, 1)
let s: I64 = net.listen(host, 8000)
let resp: String = mem.alloc(60000)
while true