package protocol-9p

  1. Overview
  2. Docs

Module Server.MakeSource

Parameters

module Log : sig ... end
module Filesystem : sig ... end

Signature

Sourcetype t

An established connection to a 9P client

Sourceval connect : Filesystem.t -> FLOW.flow -> ?msize:int32 -> ?exn_converter:exn_converter -> unit -> (t, [ `Msg of string ]) result Lwt.t

Establish a fresh connection to a 9P client. msize gives the maximum message size we support: the client may request a lower value. receive_cb will be called with every 9P request.

Sourceval get_info : t -> Protocol_9p__.Protocol_9p_info.t

Return information about the current connection

Sourceval disconnect : t -> unit Lwt.t

disconnect connection causes the connection connection to close after the next message is processed. Once the connection has been disconnected, the returned thread will resolve.

Sourceval after_disconnect : t -> unit Lwt.t

after_disconnect connection resolves after connection has disconnected.

OCaml

Innovation. Community. Security.