1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD><TITLE>tcpwrap</TITLE>
</HEAD>
<BODY>
<H1>TCPWrapper</H1>
<P>
TCP wrapper class.
</P>
<H2>SuperClass:</H2>
<P>
Object
</P>
<H2>Class Methods:</H2>
<DL>
<DT><CODE>new(<VAR>daemon</VAR>, <VAR>server</VAR>,
<VAR>ident_lookup</VAR> = false, <VAR>ident_timeout</VAR> = 30)</CODE>
<DD>
<P>
Creates a new TCPWrapper object.
<VAR>daemon</VAR> is the name of the daemon process.
<VAR>server</VAR> is the TCPServer object.
If <VAR>ident_lookup</VAR> is true, tries to connect to a remote IDENT server
to get the user name of the client in <CODE>accept</CODE>.
<VAR>ident_timeout</VAR> is the timeout for <SAMP>ident_id(3)</SAMP>,
and is given in seconds.
</P>
</DD>
</DL>
<H2>Methods:</H2>
<DL>
<DT><CODE>accept</CODE>
<DD>
<P>
Accepts the request for the connection, and returns the TCPSocket
connected to the client.
<CODE>accept</CODE> consults the access control tables described in
the <SAMP>hosts_access(5)</SAMP> manual page, and if access should
be denied, closes the socket and waits for the next request.
</P>
</DD>
</DL>
</BODY>
</HTML>
|