Skip to content

End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Socket::Option#ipv4_multicast_loop

sockopt.ipv4_multicast_loop => integer

Returns the ipv4_multicast_loop data in sockopt as an integer.

Example
sockopt = Socket::Option.ipv4_multicast_loop(10)
p sockopt.ipv4_multicast_loop => 10