Project

General

Profile

« Previous | Next » 

Revision 01da08a2

Added by akr (Akira Tanaka) almost 15 years ago

  • ext/socket/option.c (inspect_ipv4_add_drop_membership): new function
    to inspect struct ip_mreq and struct ip_mreqn for
    IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP.
    Socket::Option.new(:INET, :IP, :ADD_MEMBERSHIP,
    [239,255,99,81, 0,0,0,0].pack("CCCCCCCC")).inspect is now
    "#<Socket::Option: INET IP ADD_MEMBERSHIP 239.255.99.81 0.0.0.0>".
    (inspect_ipv4_multicast_if): new function to inspect struct in_addr
    and struct ip_mreqn for IP_MULTICAST_IF.
    Socket::Option.new(:INET, :IP, :MULTICAST_IF,
    [192,168,0,7].pack("CCCC")).inspect is now
    "#<Socket::Option: INET IP MULTICAST_IF 192.168.0.7>".

  • ext/socket/extconf.rb: check struct ip_mreq and struct ip_mreqn.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e