package mnet-ssh

  1. Overview
  2. Docs
An implementation of SSH in OCaml for Miou & Solo5

Install

dune-project
 Dependency

Authors

Maintainers

Sources

mnet-0.0.7.tbz
sha256=efcef0d0452c6b6b5d5a618bff47250fd873d4cd317d0a51ee349c4a5cb84d9a
sha512=5c0d2b5a1967c592138525f6f706457b45833f4f86a98c7cede0128edce4104e227361025bacc4c888bf73499c8438df95d51f990f93515cd4a2ce5f89e01caa

doc/mnet-ssh/Mnet_ssh/index.html

Module Mnet_sshSource

Sourcetype flow
Sourceval client : ?authenticator:Awa.Keys.authenticator -> user:string -> [ `Pubkey of Awa.Hostkey.priv | `Password of string ] -> string -> Mnet.TCP.direct Mnet.TCP.flow -> (flow, [> `Msg of string ]) result
Sourceval read : flow -> bytes -> off:int -> len:int -> int
Sourceval write : flow -> string -> off:int -> len:int -> unit
Sourceval exit_status : flow -> int32 option
Sourceval close : flow -> unit
Sourcemodule Stop : sig ... end
Sourcemodule type AUTH = sig ... end
Sourcetype t
Sourcetype db =
  1. | Database : 'db * (module AUTH with type t = 'db) -> db
Sourcetype callback = string -> request -> unit
Sourceand request =
  1. | Pty_req of {
    1. width : int32;
    2. height : int32;
    3. max_width : int32;
    4. max_height : int32;
    5. term : string;
    }
  2. | Pty_set of {
    1. width : int32;
    2. height : int32;
    3. max_width : int32;
    4. max_height : int32;
    }
  3. | Set_env of {
    1. key : string;
    2. value : string;
    }
  4. | Channel of {
    1. cmd : string;
    2. ic : unit -> string option;
    3. oc : string -> unit;
    4. ec : string -> unit;
    }
  5. | Shell of {
    1. ic : unit -> string option;
    2. oc : string -> unit;
    3. ec : string -> unit;
    }
Sourceand channel = {
  1. cmd : string option;
  2. id : int32;
  3. q : string Flux.Bqueue.c;
  4. prm : unit Miou.t;
}