package octez-shell-libs
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=dbc3b675aee59c2c574e5d0a771193a2ecfca31e7a5bc5aed66598080596ce1c
sha512=b97ed762b9d24744305c358af0d20f394376b64bfdd758dd4a81775326caf445caa57c4f6445da3dd6468ff492de18e4c14af6f374dfcbb7e4d64b7b720e5e2a
doc/octez-shell-libs.p2p/Tezos_p2p/index.html
Module Tezos_p2p
Source
An Answerer.t
is a set of callback functions, parameterized by conn_info
record. The conn_info
records contains values useful for the callback functions to perform their task, and known after the connection is set up.
Type of a connection to a peer, parametrized by the type of messages exchanged as well as meta-information associated to a peer and a connection. It wraps a P2p_socket.t
, adding meta-information and data-structures describing a more fine-grained logical state of the connection. It also set up an answering worker that responds to the messages P2p_message.t
using the callback functions of a P2p_answerer.t
.
This module manages incoming accept
and outgoing connections connect
.
Local peer discovery.
This module defines a type t
which wraps a file descriptor. Most functions simply call the underlying file descriptor function and generate logs with prefix "p2p.fd".
Scheduling of I/O operations over file descriptors.
P2P maintenance worker.
This module defines the messages of the P2p layers.
Types of the abstract data types (ADT) which parameterize the P2p layer.
This module maintains several pools of points/peers needed by the P2P layer.
This module defines constructor for the private and default P2p_answerer.t
. Both pass messages `Message msg
` to the upper-layer. The private answerer ignore all other messages.
Typed and encrypted connections to peers.
This module defines some condition values for inter modules synchronization.
Welcome worker.