package named-pipe

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t

A single named pipe capable of accepting one connection.

val create : string -> t

The server should create a named pipe at a particular path under \\.\pipe

val connect : t -> bool Lwt.t

Connect blocks until a client connects to this named pipe

val to_fd : t -> Lwt_unix.file_descr
val flush : t -> unit Lwt.t

Flushes outstanding write buffers, typically called before disconnect

val disconnect : t -> unit

Disconnects the connected client

val destroy : t -> unit

Removes the underlying OS resource

OCaml

Innovation. Community. Security.