package tezos-base
Tezos: meta-package and pervasive type definitions for Tezos
Install
Dune Dependency
Authors
Maintainers
Sources
tezos-17.3.tar.gz
sha256=7062cd57addd452852598a2214ade393130efa087b99068d53713bdf912b3680
sha512=08e4091144a03ce3c107fb91a66501bd8b65ca3278917c455a2eaac6df3e108ade63f6ab8340a4bb152d60f404326e464d0ec95d26cafe8e82f870465d24a5fc
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_base.TzPervasives.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_base.TzPervasives.Error_monad.tzresult Lwt.t) ->
'a Tezos_base.TzPervasives.Error_monad.tzresult Lwt.t
Source
val bind :
?backlog:int ->
addr ->
Lwt_unix.file_descr list Tezos_base.TzPervasives.Error_monad.tzresult Lwt.t
Source
val send :
Lwt_unix.file_descr ->
'a Tezos_base.TzPervasives.Data_encoding.t ->
'a ->
unit Tezos_base.TzPervasives.Error_monad.tzresult Lwt.t
Source
val recv :
?timeout:Ptime.Span.t ->
Lwt_unix.file_descr ->
'a Tezos_base.TzPervasives.Data_encoding.t ->
'a Tezos_base.TzPervasives.Error_monad.tzresult Lwt.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>