class IO
def recv_io
This only works if this IO channel is a Unix socket.
Receive an IO object (i.e. a file descriptor) from this IO channel.
def recv_io return IO.new(Passenger::NativeSupport.recv_fd(self.fileno)) end
def send_io(io)
This only works if this IO channel is a Unix socket.
Send an IO object (i.e. a file descriptor) over this IO channel.
def send_io(io) Passenger::NativeSupport.send_fd(self.fileno, io.fileno) end