Lwt_cstructBlocking Lwt functions to read and write from Cstruct buffers.
val read : Lwt_unix.file_descr -> Cstruct.t -> int Lwt.tread fd t reads data from the file descriptor fd into the t cstruct.
val write : Lwt_unix.file_descr -> Cstruct.t -> int Lwt.twrite fd t writes data from the t cstruct to the file descriptor fd.
complete (read fd) t fills t with data from fd.
complete (write fd) t fully-writes t to fd.
val sendto :
Lwt_unix.file_descr ->
Cstruct.t ->
Unix.msg_flag list ->
Unix.sockaddr ->
int Lwt.tsendto fd t flags sa invokes Lwt_unix.sendto on the t cstruct.
val recvfrom :
Lwt_unix.file_descr ->
Cstruct.t ->
Unix.msg_flag list ->
(int * Unix.sockaddr) Lwt.trecvfrom fd t flags sa invokes Lwt_unix.recvfrom on the t cstruct.