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.890 2005/05/31 12:10:45 jonasw Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.891 2005/10/07 09:32:30 anders 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:1161:   int(0..1) host_is_local(string hostname)   {    int(0..1) res;    if (!zero_type(res = host_is_local_cache[hostname])) return res;       // Look up the IP.    string ip = blocking_host_to_ip(hostname);       // Can we bind to it?    Stdio.Port port = Stdio.Port(); +  // bind() can trow error if ip is an invalid hostname. +  catch {    res = port->bind(0, 0, ip); -  +  };       destruct(port);    return host_is_local_cache[hostname] = res;   }      Configuration find_configuration_for_url(Standards.URI url,    void|Configuration only_this_conf,    void|array(Protocol) return_port)   //! Tries to to determine if a request for the given url would end up   //! in this server, and if so returns the corresponding configuration.