[前][次][番号順一覧][スレッド一覧]

ruby-changes:32415

From: drbrain <ko1@a...>
Date: Sat, 4 Jan 2014 10:18:26 +0900 (JST)
Subject: [ruby-changes:32415] drbrain:r44494 (trunk): * lib/rinda/ring.rb (Rinda::RingFinger#make_socket): Use

drbrain	2014-01-04 10:18:20 +0900 (Sat, 04 Jan 2014)

  New Revision: 44494

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44494

  Log:
    * lib/rinda/ring.rb (Rinda::RingFinger#make_socket):  Use
      ipv4_multicast_ttl option for portability.

  Modified files:
    trunk/ChangeLog
    trunk/lib/rinda/ring.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 44493)
+++ ChangeLog	(revision 44494)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Jan  4 10:17:54 2014  Eric Hodel  <drbrain@s...>
+
+	* lib/rinda/ring.rb (Rinda::RingFinger#make_socket):  Use
+	  ipv4_multicast_ttl option for portability.
+
 Sat Jan  4 10:15:47 2014  Eric Hodel  <drbrain@s...>
 
 	* lib/rinda/ring.rb (Rinda::RingFinger#make_socket):  Use
Index: lib/rinda/ring.rb
===================================================================
--- lib/rinda/ring.rb	(revision 44493)
+++ lib/rinda/ring.rb	(revision 44494)
@@ -414,8 +414,7 @@ module Rinda https://github.com/ruby/ruby/blob/trunk/lib/rinda/ring.rb#L414
 
       if addrinfo.ipv4_multicast? then
         soc.setsockopt(Socket::Option.ipv4_multicast_loop(1))
-        soc.setsockopt(:IPPROTO_IP, :IP_MULTICAST_TTL,
-                       [@multicast_hops].pack('c'))
+        soc.setsockopt(Socket::Option.ipv4_multicast_ttl(@multicast_hops))
       elsif addrinfo.ipv6_multicast? then
         soc.setsockopt(:IPPROTO_IPV6, :IPV6_MULTICAST_LOOP, true)
         soc.setsockopt(:IPPROTO_IPV6, :IPV6_MULTICAST_HOPS,

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]