package awa

  1. Overview
  2. Docs
type t = {
  1. server : Server.t;
  2. input_buffer : Cstruct.t;
  3. write_cb : Cstruct.t -> unit;
  4. read_cb : unit -> Cstruct.t;
  5. time_cb : unit -> Mtime.t;
}
val send_msg : t -> Ssh.message -> (t, string) result
val send_msgs : t -> Ssh.message list -> (t, string) result
val of_server : Server.t -> Ssh.message list -> (Cstruct.t -> unit) -> (unit -> Cstruct.t) -> (unit -> Mtime.t) -> (t, string) result
val rekey : t -> (t, string) result
val poll : t -> (t * Server.event, string) result
val send_channel_data : t -> Channel.Channel_map.key -> Cstruct.t -> (t, string) result
val disconnect : t -> (t, string) result
OCaml

Innovation. Community. Security.