Roxen.git / server / modules / throttling / throttletags.pike

version» Context lines:

Roxen.git/server/modules/throttling/throttletags.pike:1:   #include <module.h>   inherit "module";   inherit "roxenlib";      constant thread_safe=1; - constant cvs_version="$Id: throttletags.pike,v 1.3 1999/12/18 14:35:02 nilsson Exp $"; + constant cvs_version="$Id: throttletags.pike,v 1.4 2000/02/12 16:09:30 nilsson Exp $";      #ifdef THROTTLING_DEBUG   #undef THROTTLING_DEBUG   #define THROTTLING_DEBUG(X) werror("throttletags: "+X+"\n")   #else   #define THROTTLING_DEBUG(X)   #endif      #define THROW(X) throw( X+"\n" )    - array register_module() { -  return ({ -  MODULE_PARSER, -  "Throttling control tags", -  "This module provides a <tt>&lt;THROTTLE&gt;</tt> tag " -  "that you can use to determine a request's allocated bandwidth", -  0,1}); - } + constant module_type = MODULE_PARSER; + constant module_name = "Throttling control tags"; + constant module_doc = "This module provides a <tt>&lt;THROTTLE&gt;</tt> tag " +  "that you can use to determine a request's allocated bandwidth";      TAGDOCUMENTATION;   #ifdef manual   constant tagdoc=(["throttle":"<desc tag></desc>"]);   #endif      string|int tag_throttle(string tag, mapping args, RequestID id) {    mapping t=id->throttle;    string tmp;    if (t->fixed) {