@@@ man wip
[mLib] / sel / conn.3
index 60008e5..1ff936f 100644 (file)
@@ -9,16 +9,18 @@ conn \- selector for nonblocking connections
 .nf
 .B "#include <mLib/conn.h>"
 
-.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 );
+.B "typedef struct { ...\& } conn;"
 
-.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 );
+.ta \w'\fBint conn_fd('u
+.BI "int conn_fd(conn *" c ", sel_state *" s ", int " fd ,
+.BI "  void (*" func ")(int " fd ", void *" p ),
+.BI "  void *" p );
+
+.ta \w'\fBint conn_init('u
+.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 );
 
 .BI "void conn_kill(conn *" c );
 .fi