Warning: Reason support is experimental. We are looking for beta-tester and contributors.

Module Lwt_io.Versioned

module Versioned : sig..end

Versioned variants of APIs undergoing breaking changes.


val establish_server_1 : 
  ?fd:Lwt_unix.file_descr ->
  ?buffer_size:int ->
  ?backlog:int ->
  Unix.sockaddr ->
  (Lwt_io.input_channel * Lwt_io.output_channel -> unit) ->
  Lwt_io.server

Deprecated.Use Lwt_io.establish_server_with_client_address. Old version of Lwt_io.establish_server. The current Lwt_io.establish_server automatically closes channels passed to the callback, and notifies the caller when the server's listening socket is bound. Since 2.7.0

val establish_server_2 : 
  ?fd:Lwt_unix.file_descr ->
  ?buffer_size:int ->
  ?backlog:int ->
  ?no_close:bool ->
  Unix.sockaddr ->
  (Lwt_io.input_channel * Lwt_io.output_channel -> unit Lwt.t) ->
  Lwt_io.server Lwt.t

Deprecated.Use Lwt_io.establish_server_with_client_address. Since Lwt 3.0.0, this is just an alias for Lwt_io.establish_server. Since 2.7.0

val shutdown_server_1 : Lwt_io.server -> unit

Deprecated.Use Lwt_io.shutdown_server. Old version of Lwt_io.shutdown_server. The current Lwt_io.shutdown_server returns a promise, which resolves when the server's listening socket is closed. Since 2.7.0

val shutdown_server_2 : Lwt_io.server -> unit Lwt.t

Deprecated.Use Lwt_io.shutdown_server. Since Lwt 3.0.0, this is just an alias for Lwt_io.shutdown_server. Since 2.7.0