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.877 2004/06/30 16:58:39 mast Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.878 2004/08/18 17:01:31 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:1608: Inside #if constant(SSL.sslfile)
     #if constant(SSL.sslfile)   class SSLProtocol   //! Base protocol for SSL ports. Exactly like Port, but uses SSL.   {    inherit Protocol;       // SSL context    SSL.context ctx;    -  class destruct_protected_sslfile +  RoxenSSLFile accept()    { -  SSL.sslfile sslfile; -  -  mixed `[](string s) -  { -  return sslfile[s]; -  } -  -  mixed `[]=(string s, mixed val) -  { -  return sslfile[s] = val; -  } -  -  mixed `->(string s) -  { -  return sslfile[s]; -  } -  -  mixed `->=(string s, mixed val) -  { -  return sslfile[s] = val; -  } -  -  void destroy() -  { -  if (sslfile) -  sslfile->close(); -  } -  -  void create(object q) -  { -  sslfile = SSL.sslfile(q, ctx); -  } -  } -  -  Stdio.File accept() -  { +     Stdio.File q = ::accept();    if (q) -  return [object(Stdio.File)](object)destruct_protected_sslfile(q); +  return RoxenSSLFile (q, ctx);    return 0;    }       void create(int pn, string i)    {    ctx = SSL.context();    set_up_ssl_variables( this_object() );    port = pn;    ip = i;