12 lines
277 B
Plaintext
12 lines
277 B
Plaintext
func main[] : I64
|
|
let s: I64 = net.listen(8000)
|
|
|
|
let resp: String = c.malloc(60000)
|
|
while true
|
|
let c: I64 = c.accept(s, 0, 0)
|
|
if c < 0
|
|
continue
|
|
|
|
let n: I64 = c.read(c, resp, 60000)
|
|
c.send(c, resp, n, 0)
|
|
c.close(c) |