1 # socket example - server side
4 # this server might be blocked by an ill-behaved client.
5 # see tsvr.rb which is safe from client blocking.
12 printf("server is on %s\n", addr.join(":"))
16 nsock = select(socks);
22 print(s, " is accepted\n")
25 print(s, " is gone\n")
28 # single thread gets may block whole service