@@@ tvec setvar
[mLib] / sel / conn.3
index 1c91193..f115605 100644 (file)
@@ -9,14 +9,18 @@ conn \- selector for nonblocking connections
 .nf
 .B "#include <mLib/conn.h>"
 
-.BI "int conn_fd(conn *" c ", sel_state *" s ", int " fd ,
-.BI "            void (*" func ")(int " fd ", void *" p ),
-.BI "            void *" p );
+.B "typedef struct { ...\& } conn;"
 
-.BI "int conn_init(conn *" c ", sel_state *" s ", int " fd ,
-.BI "              struct sockaddr *" dst ", int " dsz ,
-.BI "              void (*" func ")(int " fd ", void *" p ),
-.BI "              void *" p );
+.ds mT \fBint conn_fd(
+.BI "\*(mTconn *" c ", sel_state *" s ", int " fd ,
+.BI "\h'\w'\*(mT'u'void (*" func ")(int " fd ", void *" p ),
+.BI "\h'\w'\*(mT'u'void *" p );
+
+.ds mT \fBint conn_init(
+.BI "\*(mTconn *" c ", sel_state *" s ", int " fd ,
+.BI "\h'\w'\*(mT'u'struct sockaddr *" dst ", int " dsz ,
+.BI "\h'\w'\*(mT'u'void (*" func ")(int " fd ", void *" p ),
+.BI "\h'\w'\*(mT'u'void *" p );
 
 .BI "void conn_kill(conn *" c );
 .fi