Pol  Revision:cb584c9
polwww.cpp File Reference
#include "polwww.h"
#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <iosfwd>
#include <string>
#include <time.h>
#include "../clib/cfgelem.h"
#include "../clib/cfgfile.h"
#include "../clib/esignal.h"
#include "../clib/fileutil.h"
#include "../clib/logfacility.h"
#include "../clib/passert.h"
#include "../clib/refptr.h"
#include "../clib/stlutil.h"
#include "../clib/strutil.h"
#include "../clib/threadhelp.h"
#include "../clib/wnsckt.h"
#include "../plib/pkg.h"
#include "../plib/systemstate.h"
#include "globals/uvars.h"
#include "module/httpmod.h"
#include "module/uomod.h"
#include "polcfg.h"
#include "polsem.h"
#include "scrdef.h"
#include "scrsched.h"
#include "scrstore.h"
#include "sockets.h"
#include "sockio.h"
#include "uoexec.h"
#include <pthread.h>

Go to the source code of this file.




void Pol::Core::config_web_server ()
unsigned char Pol::Core::cvt_8to6 (char ch)
std::string Pol::Core::decode_base64 (const std::string &b64s)
bool Pol::Core::decode_page (const std::string &ipage, Plib::Package **ppkg, std::string *pfilename, std::string *ppagetype, std::string *redirect_to)
std::string Pol::Core::get_page_filename (const std::string &page)
std::string Pol::Core::get_pagetype (const std::string &page)
bool Pol::Core::get_script_page_filename (const std::string &page, ScriptDef &sd)
std::string Pol::Core::http_decodestr (const std::string &s)
void Pol::Core::http_forbidden (Clib::Socket &sck)
void Pol::Core::http_forbidden (Clib::Socket &sck, const std::string &filename)
void Pol::Core::http_func (SOCKET client_socket)
void Pol::Core::http_not_authorized (Clib::Socket &sck, const std::string &)
void Pol::Core::http_not_found (Clib::Socket &sck, const std::string &filename)
bool Pol::Core::http_readline (Clib::Socket &sck, std::string &s)
void Pol::Core::http_redirect (Clib::Socket &sck, const std::string &new_url)
void Pol::Core::http_thread (void)
void Pol::Core::http_writeline (Clib::Socket &sck, const std::string &s)
void Pol::Core::init_http_thread_support ()
bool Pol::Core::legal_pagename (const std::string &page)
void Pol::Core::load_mime_config (void)
void Pol::Core::send_binary (Clib::Socket &sck, const std::string &page, const std::string &filename, const std::string &content_type)
void Pol::Core::send_html (Clib::Socket &sck, const std::string &page, const std::string &filename)
bool Pol::Core::start_http_script (Clib::Socket &sck, const std::string &page, Plib::Package *pkg, const std::string &file_ecl, const std::string &query_string)
void Pol::Core::start_http_server ()
void Pol::Core::test_decode (const char *page, bool result_expected, Plib::Package *pkg_expected, const char *filename_expected, const char *pagetype_expected, const char *redirect_to_expected)
void Pol::Core::test_decode ()


pthread_attr_t Pol::Core::http_attr

Detailed Description

  • 2005-08-22 Folko: Add config/www.cfg, reloaded when select times out (all 5 seconds)
  • 2006/10/07 Shinigami: GCC 3.4.x fix - added "template<>" to TmplExecutorModule
  • 2008/12/31 Nando: A call to Register() and some _endthread / pthread_exit were missing
  • 2009/02/22 Nando: send_binary() was sending the wrong size on sck.send().
  • 2009/02/25 Nando: removed a stray "\n" that was being sent at the end of send_binary(), probably causing some corrupted images to be loaded in browsers.
  • 2010/04/05 Shinigami: Transmit Pointer as Pointer and not Int as Pointer within start_http_conn_thread and http_conn_thread_stub

Definition in file polwww.cpp.