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.897 2005/03/02 17:49:51 grubba Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.898 2005/03/07 16:47:34 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:1630:    }    } else {    segments += array_sscanf(part, "%x");    }    }    return segments;    }       string canonical_ip(string i)    { +  if (!i) return 0;    if (has_value(i, ":")) {    // IPv6    if (i == "::") return "::"; // IPv6 ANY.    array(string) partitions = i/"::";    array(int) sections = get_ipv6_sequence(partitions[0]);    if (sizeof(partitions) > 1) {    array(int) tail = get_ipv6_sequence(partitions[1]);    sections += allocate(8 - sizeof(sections) - sizeof(tail)) + tail;    } else if (sizeof(sections) < 8) {    sections += allocate(8 - sizeof(sections));