package tezos-base
Tezos: meta-package and pervasive type definitions for Tezos
Install
Dune Dependency
Authors
Maintainers
Sources
tezos-16.1.tar.gz
sha256=43723d096307603703a1a89ed1b2eb202b365f5e7824b96b0cbf813b343a6cf7
sha512=b2a637f2e965000d3d49ad85277ca24d6cb07a1a7cf2bc69d296d8b03ad78c3eaa8e21e94b9162e62c2e11649cd03bc845b2a3dafe623b91065df69d47dc8e4f
doc/tezos-base.unix/Tezos_base_unix/Socket/index.html
Module Tezos_base_unix.Socket
Source
Source
val connect :
?timeout:Ptime.Span.t ->
addr ->
Lwt_unix.file_descr Tezos_error_monad.Error_monad.tzresult Lwt.t
connect ?timeout addr
tries connecting to addr
and returns the resulting socket file descriptor on success. When using TCP, Unix.getaddrinfo
is used to resolve the hostname and service (port). The different socket addresses returned by Unix.getaddrinfo
are tried sequentially, and the ?timeout
argument (default: 5s) governs how long it waits to get a connection. If a connection is not obtained in less than ?timeout
, the connection is canceled and and the next socket address (if it exists) is tried.
Source
val with_connection :
?timeout:Ptime.Span.t ->
addr ->
(Lwt_unix.file_descr -> 'a Tezos_error_monad.Error_monad.tzresult Lwt.t) ->
'a Tezos_error_monad.Error_monad.tzresult Lwt.t
Source
val bind :
?backlog:int ->
addr ->
Lwt_unix.file_descr list Tezos_error_monad.Error_monad.tzresult Lwt.t
Source
val send :
Lwt_unix.file_descr ->
'a Data_encoding.t ->
'a ->
unit Tezos_error_monad.Error_monad.tzresult Lwt.t
Source
val recv :
?timeout:Ptime.Span.t ->
Lwt_unix.file_descr ->
'a Data_encoding.t ->
'a Tezos_error_monad.Error_monad.tzresult Lwt.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>