pull-recvfrom
a pull-stream
for recvfrom
this module provides a source stream interface to recvfrom
npm i pull-recvfrom
pullfrom(string, number, recvfrom)
parameter signature, pullfrom(str, n, fn)
:
-
string
, a unix datagram socket path -
number
, buffer recv size -
recvfrom
, a reference torecvfrom
for example:
const pullfrom = const recvfrom = const sockpath = `/tmp/mysocketpath`const sz = 99999 const pull =
the buffer limit configuration sz
is an optional parameter
you can pass a reference to recvfrom
, after the unix socket path: