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 330 330: def recv_io 331: return IO.new(Passenger::NativeSupport.recv_fd(self.fileno)) 332: 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 322 322: def send_io(io) 323: Passenger::NativeSupport.send_fd(self.fileno, io.fileno) 324: end