package octez-shell-libs

  1. Overview
  2. Docs
Octez shell libraries

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-18.0.tar.gz
sha256=dbc3b675aee59c2c574e5d0a771193a2ecfca31e7a5bc5aed66598080596ce1c
sha512=b97ed762b9d24744305c358af0d20f394376b64bfdd758dd4a81775326caf445caa57c4f6445da3dd6468ff492de18e4c14af6f374dfcbb7e4d64b7b720e5e2a

doc/octez-shell-libs.p2p/Tezos_p2p/P2p_point_state/index.html

Module Tezos_p2p.P2p_point_stateSource

Sourcetype 'conn t =
  1. | Requested of {
    1. cancel : Lwt_canceler.t;
    }
    (*

    We initiated a connection.

    *)
  2. | Accepted of {
    1. current_peer_id : Tezos_base.TzPervasives.P2p_peer.Id.t;
    2. cancel : Lwt_canceler.t;
    }
    (*

    We accepted a incoming connection.

    *)
  3. | Running of {
    1. data : 'conn;
    2. current_peer_id : Tezos_base.TzPervasives.P2p_peer.Id.t;
    }
    (*

    Successfully authenticated connection, normal business.

    *)
  4. | Disconnected
    (*

    No connection established currently.

    *)
Sourcetype 'conn state = 'conn t
Sourceval pp : Format.formatter -> 'conn t -> unit
Sourcemodule Info : sig ... end
Sourceval get : 'conn Info.t -> 'conn t
Sourceval is_running : 'conn Info.t -> bool
Sourceval is_disconnected : 'conn Info.t -> bool
Sourceval is_accepted : 'conn Info.t -> bool
Sourceval set_requested : timestamp:Tezos_base.TzPervasives.Time.System.t -> 'conn Info.t -> Lwt_canceler.t -> unit
Sourceval set_running : timestamp:Tezos_base.TzPervasives.Time.System.t -> 'conn Info.t -> Tezos_base.TzPervasives.P2p_peer.Id.t -> 'conn -> unit
Sourceval set_private : 'conn Info.t -> bool -> unit
Sourceval set_disconnected : timestamp:Tezos_base.TzPervasives.Time.System.t -> ?requested:bool -> Tezos_p2p_services.Point_reconnection_config.t -> 'conn Info.t -> unit
Sourceval set_expected_peer_id : 'conn Info.t -> Tezos_base.TzPervasives.P2p_peer.Id.t -> unit

set_expected_peer_id point_info peer_id associates an expected peer_id to point_info.

Sourceval get_expected_peer_id : 'conn Info.t -> Tezos_base.TzPervasives.P2p_peer.Id.t option
OCaml

Innovation. Community. Security.