marionnet-dev team mailing list archive
-
marionnet-dev team
-
Mailing list archive
-
Message #00930
[Branch ~marionnet-drivers/ocamlbricks/trunk] Rev 501: Added module Pts providing a support for Linux's pseudo-terminals. A sub-module called Apply_prot...
------------------------------------------------------------
revno: 501
committer: Jean-Vincent Loddo <loddo@xxxxxxxxxxxxxxxxxxxx>
branch nick: ocamlbricks
timestamp: Sun 2020-04-12 22:24:17 +0200
message:
Added module Pts providing a support for Linux's pseudo-terminals. A sub-module called Apply_protocol provides a convenient API to manage a pseudo-terminal as a channel (ch) on which we want to apply a protocol (i.e. a programmed sequence of calls to ch#send and ch#receive, that will ending by a call to ch#shutdown):
module Apply_protocol : sig
val as_call : ?max_input_size:int -> ?file_perm:int -> filename:string -> protocol:(stream_channel -> 'a) -> unit -> (exn,'a) Either.t
val as_thread : ?max_input_size:int -> ?file_perm:int -> filename:string -> protocol:(stream_channel -> 'a) -> unit -> (exn,'a) Either.t Future.t
val as_fork : ?max_input_size:int -> ?file_perm:int -> filename:string -> protocol:(stream_channel -> 'a) -> unit -> ((exn,'a) Either.t Future.t) * pid
end (* Apply_protocol *)
added:
SHELL/pts.ml
SHELL/pts.mli
modified:
ocamlbricks.mllib
--
lp:ocamlbricks
https://code.launchpad.net/~marionnet-drivers/ocamlbricks/trunk
Your team marionnet-dev is subscribed to branch lp:ocamlbricks.
To unsubscribe from this branch go to https://code.launchpad.net/~marionnet-drivers/ocamlbricks/trunk/+edit-subscription