package caqti
Unified interface to relational database libraries
Install
Dune Dependency
Authors
Maintainers
Sources
caqti-v2.0.1.tbz
sha256=7eb57225c521fe25395653d960b1c381bb2b2ccae47bc2a827bb16611988da8b
sha512=eeafaf495b08fb8620ddee1711b8f9fa2ca0c79fb450a905c8d071806b7046d665e1e2ac0e7d3c7ca1258455decbf184e689e9ecb2453ec9d952b864f9dd14f4
doc/caqti.platform/Caqti_platform/Driver_loader/Make/argument-1-System/Net/index.html
Module System.Net
module Sockaddr : sig ... end
val getaddrinfo :
stdenv:stdenv ->
[ `host ] Domain_name.t ->
int ->
(Sockaddr.t list, [> `Msg of string ]) result Fiber.t
This should be a specialized version of getaddrinfo, which only returns entries which is expected to work with the corresponding connect on the platform implementing this interface. In particular:
- The family can be IPv4 or IPv6, where supported, and this must be encoded in the
Sockaddr.t
. - The socket type is restricted to STREAM.
- The protocol is assumed to be selected automatically from address family, given the socket type restriction.
All returned values are TCP destinations. If a distinction can be made, an empty list indicates that the address has no DNS entries, while an error return indicates that an appropriate DNS server could not be queried.
val connect :
sw:Switch.t ->
stdenv:stdenv ->
Sockaddr.t ->
(in_channel * out_channel, [> `Msg of string ]) result Fiber.t
val output_char : out_channel -> char -> unit Fiber.t
val output_string : out_channel -> string -> unit Fiber.t
val flush : out_channel -> unit Fiber.t
val input_char : in_channel -> char Fiber.t
val really_input : in_channel -> Bytes.t -> int -> int -> unit Fiber.t
val close_in : in_channel -> unit Fiber.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>