.\" -*-nroff-*-
-.TH selpk 3 "23 May 1999" mLib
+.TH selpk 3 "23 May 1999" "Straylight/Edgeware" "mLib utilities library"
.SH NAME
selpk \- packet-buffering input selector
.\" @selpk_enable
.BI "void selpk_enable(selpk *" pk );
.BI "void selpk_disable(selpk *" pk );
.BI "void selpk_want(selpk *" pk ", size_t " sz );
-.BI "void selpk_init(selpk *" pk ,
-.BI " sel_state *" s ,
-.BI " int " fd ,
-.BI " void (*" func ")(octet *" b ", size_t " sz ", pkbuf *" pk ,
-.BI " size_t *" keep ", void *" p ),
-.BI " void *" p );
+.BI "void selpk_init(selpk *" pk ", sel_state *" s ", int " fd ,
+.BI " pkbuf_func *" func ", void *" p );
.BI "void selpk_destroy(selpk *" b );
.fi
.SH DESCRIPTION
.BI "int " fd
The file descriptor of the stream the selector should read from.
.TP
-.nf
-.BI "void (*" func ")(octet *" b ", size_t " sz ", pkbuf *" p ,
-.BI " size_t *" keep ", void *" p )
-.fi
+.BI "pkbuf_func *" func
The
.I "packet handler"
-function. It is passed a pointer to each packet read from the file (or
+function. It is given a pointer to each packet read from the file (or
null to indicate end-of-file) and an arbitrary pointer (the
.I p
argument to
.B selpk_init
-described below).
+described below). See
+.BR pkbuf (3)
+for full details.
.TP
.BI "void *" p
A pointer argument passed to