<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <link rel="STYLESHEET" href="modpython.css" type='text/css' /> <link rel="first" href="modpython.html" title='Mod_python Manual' /> <link rel='contents' href='contents.html' title="Contents" /> <link rel='index' href='genindex.html' title='Index' /> <link rel='last' href='about.html' title='About this document...' /> <link rel='help' href='about.html' title='About this document...' /> <link rel="prev" href="pyapi-mpconn-meth.html" /> <link rel="parent" href="pyapi-mpconn.html" /> <link rel="next" href="pyapi-mpfilt.html" /> <meta name='aesop' content='information' /> <title>4.5.5.2 Connection Members</title> </head> <body> <DIV CLASS="navigation"> <div id='top-navigation-panel' xml:id='top-navigation-panel'> <table align="center" width="100%" cellpadding="0" cellspacing="2"> <tr> <td class='online-navigation'><a rel="prev" title="4.5.5.1 Connection Methods" href="pyapi-mpconn-meth.html"><img src='previous.png' border='0' height='32' alt='Previous Page' width='32' /></A></td> <td class='online-navigation'><a rel="parent" title="4.5.5 Connection Object (mp_conn)" href="pyapi-mpconn.html"><img src='up.png' border='0' height='32' alt='Up One Level' width='32' /></A></td> <td class='online-navigation'><a rel="next" title="4.5.6 Filter Object (mp_filter)" href="pyapi-mpfilt.html"><img src='next.png' border='0' height='32' alt='Next Page' width='32' /></A></td> <td align="center" width="100%">Mod_python Manual</td> <td class='online-navigation'><a rel="contents" title="Table of Contents" href="contents.html"><img src='contents.png' border='0' height='32' alt='Contents' width='32' /></A></td> <td class='online-navigation'><img src='blank.png' border='0' height='32' alt='' width='32' /></td> <td class='online-navigation'><a rel="index" title="Index" href="genindex.html"><img src='index.png' border='0' height='32' alt='Index' width='32' /></A></td> </tr></table> <div class='online-navigation'> <b class="navlabel">Previous:</b> <a class="sectref" rel="prev" href="pyapi-mpconn-meth.html">4.5.5.1 Connection Methods</A> <b class="navlabel">Up:</b> <a class="sectref" rel="parent" href="pyapi-mpconn.html">4.5.5 Connection Object (mp_conn)</A> <b class="navlabel">Next:</b> <a class="sectref" rel="next" href="pyapi-mpfilt.html">4.5.6 Filter Object (mp_filter)</A> </div> <hr /></div> </DIV> <!--End of Navigation Panel--> <H3><A NAME="SECTION006552000000000000000"></A><A NAME="pyapi-mpconn-mem"></A> <BR> 4.5.5.2 Connection Members </H3> <P> <dl><dt><b><tt id='l2h-149' xml:id='l2h-149' class="member">base_server</tt></b></dt> <dd> A <code>server</code> object for the physical vhost that this connection came in through. <em>(Read-Only</em>) </dl> <P> <dl><dt><b><tt id='l2h-150' xml:id='l2h-150' class="member">local_addr</tt></b></dt> <dd> The (address, port) tuple for the server. <em>(Read-Only</em>) </dl> <P> <dl><dt><b><tt id='l2h-151' xml:id='l2h-151' class="member">remote_addr</tt></b></dt> <dd> The (address, port) tuple for the client. <em>(Read-Only</em>) </dl> <P> <dl><dt><b><tt id='l2h-152' xml:id='l2h-152' class="member">remote_ip</tt></b></dt> <dd> String with the IP of the client. Same as CGI <a class="envvar" id='l2h-163' xml:id='l2h-163'>REMOTE_ADDR</a>. <em>(Read-Only</em>) </dl> <P> <dl><dt><b><tt id='l2h-153' xml:id='l2h-153' class="member">remote_host</tt></b></dt> <dd> String. The DNS name of the remote client. None if DNS has not been checked, <code>""</code> (empty string) if no name found. Same as CGI <a class="envvar" id='l2h-164' xml:id='l2h-164'>REMOTE_HOST</a>. <em>(Read-Only</em>) </dl> <P> <dl><dt><b><tt id='l2h-154' xml:id='l2h-154' class="member">remote_logname</tt></b></dt> <dd> Remote name if using RFC1413 (ident). Same as CGI <a class="envvar" id='l2h-165' xml:id='l2h-165'>REMOTE_IDENT</a>. <em>(Read-Only</em>) </dl> <P> <dl><dt><b><tt id='l2h-155' xml:id='l2h-155' class="member">aborted</tt></b></dt> <dd> Boolean. True is the connection is aborted. <em>(Read-Only</em>) </dl> <P> <dl><dt><b><tt id='l2h-156' xml:id='l2h-156' class="member">keepalive</tt></b></dt> <dd> Integer. 1 means the connection will be kept for the next request, 0 means ``undecided'', -1 means ``fatal error''. <em>(Read-Only</em>) </dl> <P> <dl><dt><b><tt id='l2h-157' xml:id='l2h-157' class="member">double_reverse</tt></b></dt> <dd> Integer. 1 means double reverse DNS lookup has been performed, 0 means not yet, -1 means yes and it failed. <em>(Read-Only</em>) </dl> <P> <dl><dt><b><tt id='l2h-158' xml:id='l2h-158' class="member">keepalives</tt></b></dt> <dd> The number of times this connection has been used. (?) <em>(Read-Only</em>) </dl> <P> <dl><dt><b><tt id='l2h-159' xml:id='l2h-159' class="member">local_ip</tt></b></dt> <dd> String with the IP of the server. <em>(Read-Only</em>) </dl> <P> <dl><dt><b><tt id='l2h-160' xml:id='l2h-160' class="member">local_host</tt></b></dt> <dd> DNS name of the server. <em>(Read-Only</em>) </dl> <P> <dl><dt><b><tt id='l2h-161' xml:id='l2h-161' class="member">id</tt></b></dt> <dd> Long. A unique connection id. <em>(Read-Only</em>) </dl> <P> <dl><dt><b><tt id='l2h-162' xml:id='l2h-162' class="member">notes</tt></b></dt> <dd> A <code>table</code> object containing miscellaneous general purpose info that lives for as long as the connection lives. </dl> <P> <DIV CLASS="navigation"> <div class='online-navigation'> <p></p><hr /> <table align="center" width="100%" cellpadding="0" cellspacing="2"> <tr> <td class='online-navigation'><a rel="prev" title="4.5.5.1 Connection Methods" href="pyapi-mpconn-meth.html"><img src='previous.png' border='0' height='32' alt='Previous Page' width='32' /></A></td> <td class='online-navigation'><a rel="parent" title="4.5.5 Connection Object (mp_conn)" href="pyapi-mpconn.html"><img src='up.png' border='0' height='32' alt='Up One Level' width='32' /></A></td> <td class='online-navigation'><a rel="next" title="4.5.6 Filter Object (mp_filter)" href="pyapi-mpfilt.html"><img src='next.png' border='0' height='32' alt='Next Page' width='32' /></A></td> <td align="center" width="100%">Mod_python Manual</td> <td class='online-navigation'><a rel="contents" title="Table of Contents" href="contents.html"><img src='contents.png' border='0' height='32' alt='Contents' width='32' /></A></td> <td class='online-navigation'><img src='blank.png' border='0' height='32' alt='' width='32' /></td> <td class='online-navigation'><a rel="index" title="Index" href="genindex.html"><img src='index.png' border='0' height='32' alt='Index' width='32' /></A></td> </tr></table> <div class='online-navigation'> <b class="navlabel">Previous:</b> <a class="sectref" rel="prev" href="pyapi-mpconn-meth.html">4.5.5.1 Connection Methods</A> <b class="navlabel">Up:</b> <a class="sectref" rel="parent" href="pyapi-mpconn.html">4.5.5 Connection Object (mp_conn)</A> <b class="navlabel">Next:</b> <a class="sectref" rel="next" href="pyapi-mpfilt.html">4.5.6 Filter Object (mp_filter)</A> </div> </div> <hr /> <span class="release-info">Release 3.3.1, documentation updated on January 29, 2007.</span> </DIV> <!--End of Navigation Panel--> </BODY> </HTML>