X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/2b1924c2442eaf7342c8e992e96b59aa7798cc8d..adec5584e13c63662fda18915280ec026063b29d:/sel/conn.3 diff --git a/sel/conn.3 b/sel/conn.3 index 60008e5..1ff936f 100644 --- a/sel/conn.3 +++ b/sel/conn.3 @@ -9,16 +9,18 @@ conn \- selector for nonblocking connections .nf .B "#include " -.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