X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/18c831dcd0ae4d660c70ccac69d27ed2a97851be..0335afec2c33fefcd6d3cb2c39d014ab2519b2c2:/sel/conn.3 diff --git a/sel/conn.3 b/sel/conn.3 index 1c91193..1ff936f 100644 --- a/sel/conn.3 +++ b/sel/conn.3 @@ -9,14 +9,18 @@ conn \- selector for nonblocking connections .nf .B "#include " +.B "typedef struct { ...\& } conn;" + +.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 ); +.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 " struct sockaddr *" dst ", int " dsz , +.BI " void (*" func ")(int " fd ", void *" p ), +.BI " void *" p ); .BI "void conn_kill(conn *" c ); .fi