Branch: Tag:

1997-08-21

1997-08-21 13:16:38 by Per Hedbor <ph@opera.com>

neigh

Rev: server/base_server/neighborhood.pike:1.1
Rev: server/base_server/roxen.pike:1.110
Rev: server/base_server/wizard.pike:1.24
Rev: server/config_actions/network_neighboorhood.pike:1.1
Rev: server/config_actions/upgrade.pike:1.11

1: - constant cvs_version = "$Id: roxen.pike,v 1.109 1997/08/21 10:50:27 per Exp $"; + constant cvs_version = "$Id: roxen.pike,v 1.110 1997/08/21 13:16:33 per Exp $";   #define IN_ROXEN   #include <roxen.h>   #include <config.h>
1596:       globvar("next_supports_update", time()+3600, "", TYPE_INT,"",0,1);    +  globvar("neighborhood", 1, +  "Neighborhood: Register with other Roxen servers on the local network" +  ,TYPE_FLAG|VAR_MORE, +  "If this option is set, Roxen will automatically broadcast it's " +  "existence to other Roxen servers on the local network"); +  +  globvar("neigh_ip", lambda(){ +  string n = reverse(gethostbyname(gethostname())[1][0]); +  sscanf(n,"%*d.%s", n); +  n=reverse(n)+"."; +  // Currently only defaults to C-nets.. +  return n+"255"; +  }(), "Neighborhood: Local network broadcast address", TYPE_STRING|VAR_MORE, +  "Usually included in the output from 'ifconfig -a'"); +  +  globvar("neigh_com", "", "Neighborhood: Server informational comment", +  TYPE_TEXT|VAR_MORE, "A short string describing this server"); +     setvars(retrieve("Variables", 0));       if(QUERY(_v) < CONFIGURATION_FILE_LEVEL)
2138:      // And then we have the main function, this is the oldest function in   // Roxen :) It has not changed all that much since Spider 2.0. -  + object neighborhood;   varargs int main(int argc, array (string) argv)   {    mixed tmp;
2177:       define_global_variables(argc, argv);    +  neighborhood = (object)"neighborhood";       create_pid_file(QUERY(pidfile));