package octez-shell-libs
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Octez shell libraries
Install
dune-project
Dependency
Authors
Maintainers
Sources
octez-19.0.tar.gz
sha256=c6df840ebbf115e454db949028c595bec558a59a66cade73b52a6d099d6fa4d4
sha512=d8aee903b9fe130d73176bc8ec38b78c9ff65317da3cb4f3415f09af0c625b4384e7498201fdb61aa39086a7d5d409d0ab3423f9bc3ab989a680cf444a79bc13
doc/octez-shell-libs.p2p/Tezos_p2p/P2p_pool/Connection/index.html
Module P2p_pool.ConnectionSource
Source
val fold :
('msg, 'peer, 'conn) t ->
init:'a ->
f:
(Tezos_base.TzPervasives.P2p_peer.Id.t ->
('msg, 'peer, 'conn) P2p_conn.t ->
'a ->
'a) ->
'afold pool ~init ~f computes (f iN cN ... (f i1 c1 init)...) where id1 ... idN are the ids of every connected peers and c1 ... cN the associated peers info.
Source
val iter :
(Tezos_base.TzPervasives.P2p_peer.Id.t ->
('msg, 'peer, 'conn) P2p_conn.t ->
unit) ->
('msg, 'peer, 'conn) t ->
unititer f pool applies f to all connected peers of pool.
Source
val list :
('msg, 'peer, 'conn) t ->
(Tezos_base.TzPervasives.P2p_peer.Id.t * ('msg, 'peer, 'conn) P2p_conn.t)
listSource
val find_by_point :
('msg, 'peer, 'conn) t ->
Tezos_base.TzPervasives.P2p_point.Id.t ->
('msg, 'peer, 'conn) P2p_conn.t optionSource
val find_by_peer_id :
('msg, 'peer, 'conn) t ->
Tezos_base.TzPervasives.P2p_peer.Id.t ->
('msg, 'peer, 'conn) P2p_conn.t optionSource
val random_addr :
?different_than:('msg, 'peer, 'conn) P2p_conn.t ->
no_private:bool ->
('msg, 'peer, 'conn) t ->
(Tezos_base.TzPervasives.P2p_point.Id.t
* Tezos_base.TzPervasives.P2p_peer.Id.t)
optionrandom_addr ?conn no_private t returns a random (point_id, peer_id) from the pool of connections. It ignores:
- connections to private peers if
no_privateis set totrue - connection
conn - connections to peers who didn't provide a listening port at session-establishment
Source
val propose_swap_request :
('msg, 'peer, 'conn) t ->
(Tezos_base.TzPervasives.P2p_point.Id.t
* Tezos_base.TzPervasives.P2p_peer.Id.t
* ('msg, 'peer, 'conn) P2p_conn.t)
optionpropose_swap_request t returns a triple (point_id, peer_id, conn) where conn is a random connection to a non-private peer, and (point_id, peer_id) is a random, different, connected peer_id at point_id.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>