]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Doc addition.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 22 Jan 2007 15:27:55 +0000 (15:27 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 22 Jan 2007 15:27:55 +0000 (15:27 +0000)
git-svn-id: file:///svn/unbound/trunk@25 be551aaa-1e26-0410-a405-d3ace91eadb9

util/netevent.h

index 198ab0d54e9c10eada4e3301437f4d7d6005eed6..8a1e9962cd1845001ef2c53e55a4fd82b4a6252c 100644 (file)
@@ -56,8 +56,10 @@ struct comm_point {
        struct comm_point tcp_parent;
 
        /* -------- TCP Accept -------- */
-       /** current and max number of TCP connections on this socket */
-       int cur_tcp_count, max_tcp_count;
+       /** current number of TCP connections on this socket */
+       int cur_tcp_count;
+       /** the number of TCP handlers for this tcp-accept socket */
+       int max_tcp_count;
        /** malloced array of tcp handlers for a tcp-accept, 
            of size max_tcp_count. */
        struct comm_point *tcp_handlers;
@@ -66,7 +68,11 @@ struct comm_point {
        struct comm_point *tcp_free;
 
        /** is this a UDP, TCP-accept or TCP socket. */
-       enum comm_point_type {comm_udp, comm_tcp_accept, comm_tcp} type;
+       enum comm_point_type {
+               comm_udp, /** UDP socket */
+               comm_tcp_accept, /** TCP accept socket */
+               comm_tcp  /** TCP handler socket */
+       } type;
 
        /** what to do when read/write is done.