Methods
Public Instance methods
Receive an IO object (i.e. a file descriptor) from this IO channel. This only works if this IO channel is a Unix socket.
Raises SystemCallError if something went wrong.
[ show source ]
# File lib/passenger/utils.rb, line 332
332: def recv_io
333: return IO.new(Passenger::NativeSupport.recv_fd(self.fileno))
334: end
Send an IO object (i.e. a file descriptor) over this IO channel. This only works if this IO channel is a Unix socket.
Raises SystemCallError if something went wrong.
[ show source ]
# File lib/passenger/utils.rb, line 324
324: def send_io(io)
325: Passenger::NativeSupport.send_fd(self.fileno, io.fileno)
326: end