32module AP_MODULE_DECLARE_DATA dialup_module;
90 "dialup: pulse: ap_pass_brigade failed:");
124 "dialup: pulse returned: %d",
status);
154 if (
dcfg->bytes_per_second == 0) {
181 "dialup: declined, meets conditions, good luck core handler");
210 "dialup: failed, send pulse");
221#ifndef APR_HOOK_ALMOST_LAST
222#define APR_HOOK_ALMOST_LAST (APR_HOOK_REALLY_LAST - 1)
236#ifndef BITRATE_TO_BYTES
237#define BITRATE_TO_BYTES(x) ((1000 * x)/8)
271 if (
dcfg->bytes_per_second == 0) {
272 return "mod_dialup: Unknown Modem Standard specified.";
292 "Modem Standard to.. simulate. "
293 "Must be one of: 'V.21', 'V.26bis', 'V.32', 'V.34', or 'V.92'"),
Apache Multi-Processing Module library.
const char apr_size_t len
#define AP_INIT_TAKE1(directive, func, mconfig, where, help)
#define ap_get_module_config(v, m)
#define AP_DECLARE_MODULE(foo)
void ap_hook_handler(ap_HOOK_handler_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder)
apr_status_t ap_pass_brigade(ap_filter_t *filter, apr_bucket_brigade *bucket)
#define AP_SENDFILE_ENABLED(x)
#define ap_get_core_module_config(v)
apr_status_t ap_mpm_register_timed_callback(apr_time_t t, ap_mpm_callback_fn_t *cbfn, void *baton)
void ap_set_accept_ranges(request_rec *r)
int ap_meets_conditions(request_rec *r)
void ap_set_etag_fd(request_rec *r, apr_file_t *fd)
void ap_finalize_request_protocol(request_rec *r)
void ap_set_content_length(request_rec *r, apr_off_t length)
void ap_set_last_modified(request_rec *r)
void ap_process_request_after_handler(request_rec *r)
void ap_die(int type, request_rec *r)
void ap_update_mtime(request_rec *r, apr_time_t dependency_mtime)
ap_vhost_iterate_conn_cb void * baton
#define APR_BRIGADE_INSERT_TAIL(b, e)
#define APR_BRIGADE_CONCAT(a, b)
#define APR_BRIGADE_EMPTY(b)
#define APR_BRIGADE_SENTINEL(b)
#define APR_BUCKET_PREV(e)
#define HTTP_INTERNAL_SERVER_ERROR
#define STANDARD20_MODULE_STUFF
int strcasecmp(const char *a, const char *b)
#define APR_RING_UNSPLICE(ep1, epN, link)
#define APR_RING_SPLICE_HEAD(hp, ep1, epN, elem, link)
#define APR_RING_FIRST(hp)
#define apr_time_from_sec(sec)
#define APR_HOOK_ALMOST_LAST
static const command_rec dialup_cmds[]
static void dialup_callback(void *baton)
static void * dialup_dcfg_create(apr_pool_t *p, char *dummy)
static const modem_speed_t modem_bitrates[]
static const char * cmd_modem_standard(cmd_parms *cmd, void *dconf, const char *input)
static int dialup_send_pulse(dialup_baton_t *db)
#define BITRATE_TO_BYTES(x)
static void dialup_register_hooks(apr_pool_t *p)
static int dialup_handler(request_rec *r)
struct apr_bucket_brigade::apr_bucket_list list
struct apr_bucket_alloc_t * bucket_alloc
Per-directory configuration.
apr_size_t bytes_per_second
apr_bucket_brigade * tmpbb
apr_size_t bytes_per_second
apr_size_t bytes_per_second
A structure that represents the current request.
struct ap_filter_t * output_filters
struct ap_conf_vector_t * per_dir_config
apr_thread_mutex_t * invoke_mtx