protocol-9p-unix
Unix clients and servers for the 9P protocol
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Library protocol_9p_unix
Parameters
module Log : Protocol_9p.S.LOG
module Filesystem : Protocol_9p.Filesystem.S
Signature
val of_fd : Filesystem.t -> Lwt_unix.file_descr -> t
of_fd fs fd
returns a server configured to accept connections on listening socket fd
.
val listen : Filesystem.t -> string -> string -> t Protocol_9p.Error.t Lwt.t
listen fs proto address callback
listens on the address address
and prepares to serve 9P via the callback
. The proto
and address
can be either:
- unix /path/to/socket
- tcp ip:port
shutdown t
requests that the running server t
is shutdown, and blocks until the shutdown is complete and resources are freed.
val serve_forever : t -> unit Protocol_9p.Error.t Lwt.t
serve_forever t
starts serving 9P requests via t
. This thread only returns when the server has been shutdown.