summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordamiano1999-02-19 16:17:07 +0000
committerdamiano1999-02-19 16:17:07 +0000
commit5b4afa3ef01915018734a8b2e85be7e925d4bc6b (patch)
tree04ca05231019e9d0530b0df545b1e3a2ac3f803e
parent53ccd83054c3bca0ebde3070a2846ed476c575a5 (diff)
downloadivy-perl-5b4afa3ef01915018734a8b2e85be7e925d4bc6b.zip
ivy-perl-5b4afa3ef01915018734a8b2e85be7e925d4bc6b.tar.gz
ivy-perl-5b4afa3ef01915018734a8b2e85be7e925d4bc6b.tar.bz2
ivy-perl-5b4afa3ef01915018734a8b2e85be7e925d4bc6b.tar.xz
default ivyBus value is 127.255.255.255:2010
remove of some comments
-rw-r--r--src/Ivy.pm17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/Ivy.pm b/src/Ivy.pm
index fc4e720..1788648 100644
--- a/src/Ivy.pm
+++ b/src/Ivy.pm
@@ -104,9 +104,8 @@ use constant VERSION => 3;
use constant MSG_FMT => "%d %d\002%s\n";
# par defaut, on diffuse le bonjour en local
-# (sauf pour l'instant, pour rester compatible)
-#use constant BROADCAST_ADDRS => "127.255.255.255" ;
-use constant BROADCAST_ADDRS => "143.196.1.255, 143.196.2.255, 143.196.53.255";
+use constant BROADCAST_ADDRS => "127.255.255.255" ;
+use constant BROADCAST_PORT => "2010";
use constant BYE => 0;
use constant REGEXP => 1;
@@ -230,7 +229,7 @@ sub start (@)
# ou valeur cablee, a defaut
my $default_domains = $ENV{"IVYDOMAINS"};
$default_domains = BROADCAST_ADDRS unless defined ($default_domains);
- my $default_ivyBus = defined $ENV{"IVYBUS"} ? $ENV{"IVYBUS"} : "";
+ my $default_ivyBus = defined $ENV{"IVYBUS"} ? $ENV{"IVYBUS"} : BROADCAST_ADDRS.BROADCAST_PORT;
my %defaultOptions = ( #PARAMETRES OBLIGATOIRES
@@ -240,16 +239,6 @@ sub start (@)
-appName => undef,
# nom de l'appli
- # PARAMETRES FACULTATIFS (avec valeurs par defaut)
-# -broadcastPort => $ENV{"BUS"},
- # No de port UDP Si non specifie la variable
- # d'environnement BUS sera examinee
-
-# -domains => $default_domains,
- # Liste des domaines ou se fait le broadcast
- # si non specifie, on utilise la variable
- # d'environnement ou la valeur par defaut
-
-ivyBus => $default_ivyBus,
# les adresses de reseau sur lesquelles ont broadcaste
# suivies du No de port :