package apero-net

  1. Overview
  2. Docs
module TcpConfig : sig ... end
include NetService.S with type config = TcpConfig.t
type 'a io_init = NetService.TxSession.t -> 'a Lwt.t
type 'a io_service = NetService.TxSession.t -> 'a -> 'a Lwt.t
type config = TcpConfig.t
type 'a t
val make : config -> 'a t
val mtu : NetService.mtu
val start : 'a t -> 'a io_init -> 'a io_service -> unit Lwt.t
val stop : 'a t -> unit Lwt.t
val config : 'a t -> config
val socket : 'a t -> Lwt_unix.file_descr
val establish_session : 'a t -> Locator.Locator.t -> NetService.TxSession.t Lwt.t