Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type channel = {
cmd : string option;
id : int32;
sshin_mbox : sshin_msg Lwt_mvar.t;
exec_thread : unit Lwt.t;
}
type set_env = string -> string -> unit Lwt.t
type set_window =
term:string ->
w:int32 ->
h:int32 ->
maxw:int32 ->
maxh:int32 ->
unit Lwt.t
type t = {
exec_callback : exec_callback;
channels : channel list;
nexus_mbox : nexus_msg Lwt_mvar.t;
env : set_env option;
window : set_window option;
}
val send_msg :
Lwt_unix.file_descr ->
Awa.Server.t ->
Awa.Ssh.message ->
Awa.Server.t Lwt.t
val send_msgs :
Lwt_unix.file_descr ->
Awa.Server.t ->
Awa.Ssh.message list ->
Awa.Server.t Lwt.t
val net_read : Lwt_unix.file_descr -> nexus_msg Lwt.t
val nexus : t -> Lwt_unix.file_descr -> Awa.Server.t -> Cstruct.t -> t Lwt.t
val spawn_server :
?env:set_env ->
?window:set_window ->
Awa.Server.t ->
Awa.Ssh.message list ->
Lwt_unix.file_descr ->
exec_callback ->
t Lwt.t