unixserver.accept => unixsocket
Instance Public methods
Accepts a new connection. It returns new UNIXSocket object.
UNIXServer.open("/tmp/sock") {|serv| UNIXSocket.open("/tmp/sock") {|c| s = serv.accept s.puts "hi" s.close p c.read #=> "hi\n" } }
Please login to continue.