package named-pipe

  1. Overview
  2. Docs
Bindings for named pipes

Install

dune-project
 Dependency

Authors

Maintainers

Sources

named-pipe-0.4.0.tbz
sha256=c602f4d5fdc9f5ff8ec83a0d43608ad76f49f50c4b4bf10774435e7ed8688374
md5=ec3a7aaec3cc0efd6560dd1668da6def

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 -> unit 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