871207ac5aa0ebc64fbf3f90941c86919ad2c42d
10 local sock
= socket
.tcp()
12 sock
= luaevent
.wrap(sock
)
13 print(assert(sock
:connect("localhost", 20000)))
14 for i
= 1, 100 do assert(sock
:send("Greet me ")) assert(sock
:receive(10)) collectgarbage() end
18 luaevent
.addthread(func
)