package tezos-base
Tezos: meta-package and pervasive type definitions for Tezos
Install
Dune Dependency
Authors
Maintainers
Sources
tezos-16.0.tar.gz
sha256=ad9e08819871c75ba6f4530b125f7d157799398e4d77a1e6bfea9d91ff37ff55
sha512=c5dc4d40cc09bc6980fbbdb5c2e105bf4252cf9cfcb2b49660b0ebe4dc789f6709ec3b3bf2f87d81580d3eed9521eeb1c960f24d9b14eb0285aaba1f84d10a9b
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)"
>