Commit 2bbe5040 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(Files): Document the handshake_ok field of connections.txt.

(Function Templates for send-async.c): Include a call to
	handshake_ok() in prototype code.
(Traversing Connections): Ditto.
parent c7cc186c
\input texinfo
@c $Id: lyskomd.texi,v 1.64 2003/08/03 13:27:50 ceder Exp $
@c $Id: lyskomd.texi,v 1.65 2003/08/05 09:54:05 ceder Exp $
@c %**start of header
@setfilename lyskomd.info
@include version.texi
......@@ -1087,6 +1087,8 @@ The data about each client is collected on a single line:
@itemize @bullet
@item The file descriptor
@item The session number
@item @samp{1} if the handshake is OK, the reverse DNS has completed,
and the IDENT lookup has completed. @samp{0} otherwise.
@item The IP address of the client
@item The port number of the client
@end itemize
......@@ -1970,7 +1972,7 @@ void async_@var{something}( @var{parameters} )
/* Check that connection is logged on. We might
want to check other things here too, such as
if the connection is allowed to see the message */
if (cptr->username_valid == TRUE)
if (handshake_ok(cptr, 0))
prot_a_async_@var{something}(cptr, @var{parameters});
break;
default:
......@@ -1998,7 +2000,7 @@ void async_@var{something}(struct connection *cptr,
/* Check that connection is logged on. We might
want to check other things here too, such as
if the connection is allowed to see the message */
if (cptr->username_valid == TRUE)
if (handshake_ok(cptr))
prot_a_async_@var{something}(cptr, @var{parameters});
break;
default:
......@@ -2604,7 +2606,10 @@ The canonical traversal code looks like this:
while ((session = traverse_connections(session)) != 0)
@{
cptr = get_conn_by_number(session);
...
if (handshake_ok(cptr, 0)) /* can sometimes be skipped */
@{
...
@}
@}
@end example
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment