unixsocket.recv_io([klass [, mode]]) => io
Instance Public methods
IO.open(â/tmp/sockâ) {|serv|
UNIXSocket.open("/tmp/sock") {|c| s = serv.accept c.send_io STDOUT stdout = s.recv_io p STDOUT.fileno #=> 1 p stdout.fileno #=> 7 stdout.puts "hello" # outputs "hello\n" to standard output. }
}
Please login to continue.