mirage-channel-lwt

Buffered channels for MirageOS FLOW types
Description

Channels are buffered reader/writers built on top of unbuffered FLOW implementations.

Example:

module Channel = Channel.Make(Flow)
...
Channel.read_exactly ~len:16 t
>>= fun bufs -> (* read header of message *)
let payload_length = Cstruct.(LE.get_uint16 (concat bufs) 0) in
Channel.read_exactly ~len:payload_length t
>>= fun bufs -> (* payload of message *)

(* process message *)

Channel.write_buffer t header;
Channel.write_buffer t payload;
Channel.flush t
>>= fun () ->

mirage-channel is distributed under the ISC license.

Install
Published
14 Jun 2017
Authors
Maintainers
Sources
mirage-channel-3.1.0.tbz
md5=942d02ee627c0bae75ce5e7e16c1153e
Dependencies
io-page-unix with-test
alcotest with-test & < "1.4.0"
lwt >= "2.4.7"
mirage-channel >= "3.1.0" & < "4.0.0"
jbuilder >= "1.0+beta10"
ocaml >= "4.02.3"
Reverse Dependencies
cohttp-mirage < "2.4.0"
dns-forward >= "0.9.0"
git-mirage < "2.1.2"
mirage-http >= "3.0.0"
mirage-types-lwt >= "3.0.0" & < "3.7.1"
protocol-9p >= "0.9.0" & < "2.0.2"
Conflicts
tcpip < "2.5.0"