SOCK_RECV
Receive a message from a socket.
Note: This is similar to recv
in POSIX, though it also supports reading the data into multiple buffers in the manner of readv
.
(@interface func (export "sock_recv")
(param $fd $fd)
;;; List of scatter/gather vectors to which to store data.
(param $ri_data $iovec_array)
;;; Message flags.
(param $ri_flags $riflags)
;;; Number of bytes stored in ri_data and message flags.
(result $error (expected (tuple $size $roflags) (error $errno)))
)
Content copied to clipboard