Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Channels represent connections between clients and servers.
An open channel to an NBD client or server.
type cleartext_channel = {
read_clear : Cstruct.t -> unit Lwt.t;
write_clear : Cstruct.t -> unit Lwt.t;
close_clear : unit -> unit Lwt.t;
make_tls_channel : (unit -> tls_channel Lwt.t) option;
}
type channel = generic_channel
val generic_of_tls_channel : tls_channel -> generic_channel
val generic_of_cleartext_channel : cleartext_channel -> generic_channel