From 2b2ed078008dc67a2416c1734754afdfb2d705ba Mon Sep 17 00:00:00 2001 From: fourdan Date: Mon, 7 May 2007 12:33:25 +0000 Subject: Use ReusePort instead of ReuseAddr for Mac OS-X (and others?) --- Ivy.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ivy.pm b/Ivy.pm index b43c713..e128c3a 100644 --- a/Ivy.pm +++ b/Ivy.pm @@ -766,7 +766,7 @@ sub start (LocalPort => $self->[broadcastPort], Proto => 'udp', Type => SOCK_DGRAM, - Reuse => 1); + ReusePort => 1); $self->[supSock]->sockopt (SO_BROADCAST, 1); foreach my $netBroadcastAddr (@{$self->[broadcastBuses]}) { # print "BroadcastBus: --", $netBroadcastAddr, "--\n"; @@ -778,7 +778,7 @@ sub start # creating the multicast socket $self->[supSock] = IO::Socket::Multicast->new (LocalPort => $self->[broadcastPort], - ReuseAddr => 1); + ReusePort => 1); # Multicast datagrams with initial TTL 0 are restricted to the same host. # Multicast datagrams with initial TTL 1 are restricted to the same subnet. -- cgit v1.1