Roxen.git
/
server
/
base_server
/
module.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/base_server/module.pike:1:
// This file is part of Roxen WebServer. // Copyright © 1996 - 2004, Roxen IS.
-
// $Id: module.pike,v 1.
227
2006
/
10
/
13
18:
20
:
38
mast Exp $
+
// $Id: module.pike,v 1.
228
2007
/
07
/
12
18:
58
:
18
mast Exp $
#include <module_constants.h> #include <module.h> #include <request_trace.h> constant __pragma_save_parent__ = 1; inherit "basic_defvar"; mapping(string:array(int)) error_log=([]);
Roxen.git/server/base_server/module.pike:166:
//! A common way of referring to a location where you maintain //! information about your module or similar. The URL will turn up //! on the module's information page in the admin interface, //! referred to as the module's home page. { module_url = to; } void free_some_sockets_please(){}
+
// These functions have bodies to make module inheritance easier: An
+
// inheriting module can always assume that the module it inherits
+
// have these functions defined and properly proxy the calls to them.
+
// Thus an inherited module should be free to define them later on
+
// even if it didn't have them initially. (Modules need never proxy
+
// calls to the default implementations here.)
void start(int variable_save, Configuration conf, void|int newly_added) {}
-
+
void stop() {}
+
void ready_to_receive_requests (Configuration conf) {}
string status() {} string info(Configuration conf) { return (this_object()->register_module()[2]); } string sname( ) {