Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2004, Roxen IS.   //   // The Roxen WebServer main program.   //   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.1026 2009/03/23 12:51:13 jonasw Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.1027 2009/03/23 13:45:49 mast Exp $";      //! @appears roxen   //!   //! The Roxen WebServer main program.      // The argument cache. Used by the image cache.   ArgCache argcache;      // Some headerfiles   #define IN_ROXEN
Roxen.git/server/base_server/roxen.pike:2460:    return protocols;   }         mapping(string:program/*(Protocol)*/) protocols;      // prot:ip:port ==> Protocol.   mapping(string:mapping(string:mapping(int:Protocol))) open_ports = ([ ]);      // url:"port" ==> Protocol. - mapping(string:mapping(string:Configuration|Protocol|string)) urls = ([]); + mapping(string:mapping(string:Configuration|Protocol|string|array(Protocol))) +  urls = ([]);   array sorted_urls = ({});      array(string) find_ips_for( string what )   {    if( what == "*" || lower_case(what) == "any" )    return ({ 0,   #if constant(__ROXEN_SUPPORTS_IPV6__)    "::",   #endif /* __ROXEN_SUPPORTS_IPV6__ */    }); // ANY
Roxen.git/server/base_server/roxen.pike:2678:    filter(replace(opts->ip||"", " ","")/",", is_ip)) )    required_hosts = find_ips_for( host );       if (!required_hosts) {    // FIXME: Used to fallback to ANY.    // Will this work with glob URLs?    report_error(LOC_M(23, "Cannot register URL %s!")+"\n", url);    return 0;    }    -  mapping m; +  mapping(string:mapping(int:Protocol)) m;    if( !( m = open_ports[ protocol ] ) )    // always add 'ANY' (0) and 'IPv6_ANY' (::) here, as empty mappings,    // for speed reasons.    // There is now no need to check for both open_ports[prot][0] and    // open_ports[prot][0][port], we can go directly to the latter    // test.    m = open_ports[ protocol ] = ([ 0:([]), "::":([]) ]);       if (prot->supports_ipless ) {    // Check if the ANY port is already open for this port, since this