package named-pipe

  1. Overview
  2. Docs
Named pipe bindings

Install

Dune Dependency

Authors

Maintainers

Sources

v0.3.tar.gz
sha256=c096db1305e734322382510f5d1bc24c5ace2ca02e8b507c8b2eda7678658cf5
md5=33a003c2041225f5de6fdde94cb84cbd

doc/named-pipe.lwt/Named_pipe_lwt/Server/index.html

Module Named_pipe_lwt.Server

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.