1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
4
<title>4.5.4.2 Connection Members</title>
5
<META NAME="description" CONTENT="4.5.4.2 Connection Members">
6
<META NAME="keywords" CONTENT="modpython">
7
<META NAME="resource-type" CONTENT="document">
8
<META NAME="distribution" CONTENT="global">
9
<link rel="STYLESHEET" href="modpython.css">
10
<link rel="first" href="modpython.html">
11
<link rel="contents" href="contents.html" title="Contents">
12
<link rel="index" href="genindex.html" title="Index">
13
<LINK REL="previous" href="pyapi-mpconn-meth.html">
14
<LINK REL="up" href="pyapi-mpconn.html">
15
<LINK REL="next" href="pyapi-mpfilt.html">
18
<DIV CLASS="navigation">
19
<table align="center" width="100%" cellpadding="0" cellspacing="2">
21
<td><A href="pyapi-mpconn-meth.html"><img src="icons/previous.gif"
22
border="0" height="32"
23
alt="Previous Page" width="32"></A></td>
24
<td><A href="pyapi-mpconn.html"><img src="icons/up.gif"
25
border="0" height="32"
26
alt="Up One Level" width="32"></A></td>
27
<td><A href="pyapi-mpfilt.html"><img src="icons/next.gif"
28
border="0" height="32"
29
alt="Next Page" width="32"></A></td>
30
<td align="center" width="100%">Mod_python Manual</td>
31
<td><A href="contents.html"><img src="icons/contents.gif"
32
border="0" height="32"
33
alt="Contents" width="32"></A></td>
34
<td><img src="icons/blank.gif"
35
border="0" height="32"
36
alt="" width="32"></td>
37
<td><A href="genindex.html"><img src="icons/index.gif"
38
border="0" height="32"
39
alt="Index" width="32"></A></td>
41
<b class="navlabel">Previous:</b> <a class="sectref" href="pyapi-mpconn-meth.html">4.5.4.1 Connection Methods</A>
42
<b class="navlabel">Up:</b> <a class="sectref" href="pyapi-mpconn.html">4.5.4 Connection Object (mp_conn) </A>
43
<b class="navlabel">Next:</b> <a class="sectref" href="pyapi-mpfilt.html">4.5.5 Filter Object (mp_filter) </A>
46
<!--End of Navigation Panel-->
48
<H3><A NAME="SECTION006542000000000000000"> </A>
50
4.5.4.2 Connection Members
54
<dl><dt><b><a name="l2h-116"><tt class="member">base_server</tt></a></b>
56
A <code>server</code> object for the physical vhost that this connection came in
62
<dl><dt><b><a name="l2h-117"><tt class="member">local_addr</tt></a></b>
64
The (address, port) tuple for the server.
69
<dl><dt><b><a name="l2h-118"><tt class="member">remote_addr</tt></a></b>
71
The (address, port) tuple for the client.
76
<dl><dt><b><a name="l2h-119"><tt class="member">remote_ip</tt></a></b>
78
String with the IP of the client. Same as CGI <a class="envvar" name="l2h-130">REMOTE_ADDR</a>.
83
<dl><dt><b><a name="l2h-120"><tt class="member">remote_host</tt></a></b>
85
String. The DNS name of the remote client. None if DNS has not been
86
checked, <code>""</code> (empty string) if no name found. Same as CGI <a class="envvar" name="l2h-131">REMOTE_HOST</a>.
91
<dl><dt><b><a name="l2h-121"><tt class="member">remote_logname</tt></a></b>
93
Remote name if using RFC1413 (ident). Same as CGI <a class="envvar" name="l2h-132">REMOTE_IDENT</a>.
98
<dl><dt><b><a name="l2h-122"><tt class="member">aborted</tt></a></b>
100
Boolean. True is the connection is aborted.
105
<dl><dt><b><a name="l2h-123"><tt class="member">keepalive</tt></a></b>
107
Integer. 1 means the connection will be kept for the next request, 0 means
108
``undecided'', -1 means ``fatal error''.
113
<dl><dt><b><a name="l2h-124"><tt class="member">double_reverse</tt></a></b>
115
Integer. 1 means double reverse DNS lookup has been performed, 0 means
116
not yet, -1 means yes and it failed.
121
<dl><dt><b><a name="l2h-125"><tt class="member">keepalives</tt></a></b>
123
The number of times this connection has been used. (?)
128
<dl><dt><b><a name="l2h-126"><tt class="member">local_ip</tt></a></b>
130
String with the IP of the server.
135
<dl><dt><b><a name="l2h-127"><tt class="member">local_host</tt></a></b>
137
DNS name of the server.
142
<dl><dt><b><a name="l2h-128"><tt class="member">id</tt></a></b>
144
Long. A unique connection id.
149
<dl><dt><b><a name="l2h-129"><tt class="member">notes</tt></a></b>
151
A <code>table</code> object containing miscellaneous general purpose info that lives for
152
as long as the connection lives.
157
<DIV CLASS="navigation">
159
<table align="center" width="100%" cellpadding="0" cellspacing="2">
161
<td><A href="pyapi-mpconn-meth.html"><img src="icons/previous.gif"
162
border="0" height="32"
163
alt="Previous Page" width="32"></A></td>
164
<td><A href="pyapi-mpconn.html"><img src="icons/up.gif"
165
border="0" height="32"
166
alt="Up One Level" width="32"></A></td>
167
<td><A href="pyapi-mpfilt.html"><img src="icons/next.gif"
168
border="0" height="32"
169
alt="Next Page" width="32"></A></td>
170
<td align="center" width="100%">Mod_python Manual</td>
171
<td><A href="contents.html"><img src="icons/contents.gif"
172
border="0" height="32"
173
alt="Contents" width="32"></A></td>
174
<td><img src="icons/blank.gif"
175
border="0" height="32"
176
alt="" width="32"></td>
177
<td><A href="genindex.html"><img src="icons/index.gif"
178
border="0" height="32"
179
alt="Index" width="32"></A></td>
181
<b class="navlabel">Previous:</b> <a class="sectref" href="pyapi-mpconn-meth.html">4.5.4.1 Connection Methods</A>
182
<b class="navlabel">Up:</b> <a class="sectref" href="pyapi-mpconn.html">4.5.4 Connection Object (mp_conn) </A>
183
<b class="navlabel">Next:</b> <a class="sectref" href="pyapi-mpfilt.html">4.5.5 Filter Object (mp_filter) </A>
185
<span class="release-info">Release 3.1.3, documentation updated on February 17, 2004.</span>
187
<!--End of Navigation Panel-->