Apache 1.3 API Documentation

Structure conn_rec

Definition:

typedef struct conn_rec conn_rec; 
struct conn_rec { 
    pool *pool; 
    server_rec *server; 
    server_rec *base_server; 
    void *vhost_lookup_data; 
    int child_num; 
    BUFF *client; 
    struct sockaddr_in local_addr; 
    struct sockaddr_in remote_addr; 
    char *remote_ip; 
    char *remote_host; 
    char *remote_logname; 
    char *user; 
    char *ap_auth_type; 
    unsigned aborted:1; 
    signed int keepalive:2; 
    unsigned keptalive:1; 
    signed int double_reverse:2; 
    int keepalives; 
    char *local_ip; 
    char *local_host; 
};
     

Usage example:

No examples available.
     

The conn_rec structure is used to hold information about a currently-open connexion between the Web server and a client. Since a connexion is made to a server host, a conn_rec record is tied to a particular server_rec, and a pointer to that server record is stored in the conn_rec structure.

The structure also contains information about the client, such as its IP address and DNS name (if a lookup has been performed).

Note:
An unfortunate assumption was made during the early days of Apache that only one set of authentication credentials would be in use for any connexion, even persistent ones. That is why this structure includes the credential information instead of the request_rec, which is where it actually belongs. This has been corrected for Apache 2.0.
Note:
This structure has been very stable through the Apache 1.3 series of releases, but has been updated for 2.0.
See also:
BUFF, cmd_parms, command_rec, proxyreqtype, request_rec, server_addr_rec, server_rec, uri_components

Previous: configfile_t Next: global_score

Table of Contents (Routines, Structures, Data Cells, Constants)