package gluten-lwt

  1. Overview
  2. Docs
Lwt-specific runtime for gluten

Install

dune-project
 Dependency

Authors

Maintainers

Sources

gluten-0.2.1.tbz
sha256=86308b0695eb2b56ea0653cdf6cdd1a7338743e1e722b1a3aa10fd7cd9ad80de
sha512=dff8f9af28696d8ff9aa73b99d7ce4e82d0e34928e2688bfd4245b1c76834f6900551a5ac2fdd6cb6faf74dc5c7fc307c6279f78c00679adb2a4f764aef0612f

doc/gluten-lwt/Gluten_lwt/Client/argument-1-Io/index.html

Parameter Client.Io

type socket
type addr
val read : socket -> Bigstringaf.t -> off:int -> len:int -> [ `Eof | `Ok of int ] Lwt.t

The region (off, off + len) is where read bytes can be written to

val writev : socket -> Faraday.bigstring Faraday.iovec list -> [ `Closed | `Ok of int ] Lwt.t
val shutdown_send : socket -> unit
val shutdown_receive : socket -> unit
val close : socket -> unit Lwt.t