Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. 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