package tezos-base
- Overview
- No Docs
You can search for identifiers within the package.
in-package search v0.2.0
Tezos: meta-package and pervasive type definitions for Tezos
Install
Dune Dependency
Authors
Maintainers
Sources
tezos-v12.3.tar.bz2
sha256=296bb5674bc6050afe6330326fbdd0dfc2255d414bfd6b79cc7666ac6b39316d
sha512=c061cd300a9410300851158d77bf8e56ca3c568b0b1161b38305e5b2efdcd9c746d391f832fdb2826f9a1d6babce10a9b764a4b04f5df42699f7314b9863123a
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)"
>