mod_perl logo
perl icon







previous page: Apache::compat -- 1.0 backward compatibility functions deprecated in 2.0page up: mod_perl APIsnext page: Apache::Const - Perl Interface for Apache Constants


Apache::Connection - Perl API for Apache connection object











Practical mod_perl

Practical mod_perl

By Stas Bekman, Eric Cholet
The mod_perl Developer's Cookbook

The mod_perl Developer's Cookbook

By Geoffrey Young, Paul Lindner, Randy Kobes
mod_perl Pocket Reference

mod_perl Pocket Reference

By Andrew Ford


Table of Contents

Synopsis

  use Apache::Connection ();

META: to be completed



TOP

Description

META: to be completed



TOP

API

Apache::Connection provides the following functions and/or methods:



TOP

aborted

Check whether the connection is still open

  $status = $c->aborted();


TOP

base_server

Physical vhost this connection came in on

  $base_server = $c->base_server();


TOP

bucket_alloc

META: Autogenerated - needs to be reviewed/completed

The bucket allocator to use for all bucket/brigade creations

  $ba = $c->bucket_alloc();


TOP

conn_config

META: Autogenerated - needs to be reviewed/completed

Notes on *this* connection

  $ret = $c->conn_config();


TOP

id

ID of this connection; unique at any point in time

  $id = $c->id();


TOP

input_filters

A list of input filters to be used for this connection

  $input_filters = $c->input_filters();


TOP

keepalive

Are we going to keep the connection alive for another request?

  $status = $c->keepalive();


TOP

local_addr

Get this connection's local socket address

  $sa = $c->local_addr();


TOP

local_host

used for ap_get_server_name when UseCanonicalName is set to DNS (ignores setting of HostnameLookups)

  $local_host = $c->local_host();


TOP

local_ip

server IP address

  $local_ip = $c->local_ip();


TOP

notes

META: Autogenerated - needs to be reviewed/completed

send note from one module to another, must remain valid for all requests on this conn

  $c->notes($notes);
  $notes = $c->notes();


TOP

output_filters

META: Autogenerated - needs to be reviewed/completed

A list of output filters to be used for this connection

  $output_filters = $c->output_filters();


TOP

pool

Pool associated with this connection

  $p = $c->pool();


TOP

remote_addr

Get this connection's remote socket address

  $sa = $c->remote_addr();


TOP

remote_ip

Client's IP address

  $remote_ip = $c->remote_ip();


TOP

remote_host

Client's DNS name, if known. NULL if DNS hasn't been checked, "" if it has and no address was found. N.B. Only access this though get_remote_host()

  $remote_host = $c->remote_host();


TOP

remote_logname

Only ever set if doing rfc1413 lookups. N.B. Only access this through get_remote_logname()

  $remote_logname = $c->remote_logname();


TOP

sbh

META: Autogenerated - needs to be reviewed/completed

handle to scoreboard information for this connection

  $sbh = $c->sbh();


TOP

See Also

mod_perl 2.0 documentation.



TOP

Copyright

mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 1.1.



TOP

Authors

The mod_perl development team and numerous contributors.







TOP
previous page: Apache::compat -- 1.0 backward compatibility functions deprecated in 2.0page up: mod_perl APIsnext page: Apache::Const - Perl Interface for Apache Constants