package tezos-base

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t =
  1. | Too_few_connections
  2. | Too_many_connections
  3. | New_point of P2p_point.Id.t
  4. | New_peer of P2p_peer_id.t
  5. | Gc_points
    (*

    Garbage collection of known point table has been triggered.

    *)
  6. | Gc_peer_ids
    (*

    Garbage collection of known peer_ids table has been triggered.

    *)
  7. | Incoming_connection of P2p_point.Id.t
    (*

    We accept(2)-ed an incoming connection

    *)
  8. | Outgoing_connection of P2p_point.Id.t
    (*

    We connect(2)-ed to a remote endpoint

    *)
  9. | Authentication_failed of P2p_point.Id.t
    (*

    Remote point failed authentication

    *)
  10. | Accepting_request of P2p_point.Id.t * Id.t * P2p_peer_id.t
    (*

    We accepted a connection after authentifying the remote peer.

    *)
  11. | Rejecting_request of P2p_point.Id.t * Id.t * P2p_peer_id.t
    (*

    We rejected a connection after authentifying the remote peer.

    *)
  12. | Request_rejected of P2p_point.Id.t * (Id.t * P2p_peer_id.t) option
    (*

    The remote peer rejected our connection.

    *)
  13. | Connection_established of Id.t * P2p_peer_id.t
    (*

    We successfully established a authentified connection.

    *)
  14. | Bootstrap_received of {
    1. source : P2p_peer_id.t;
    }
    (*

    A bootstrap message has been received.

    *)
  15. | Bootstrap_sent of {
    1. source : P2p_peer_id.t;
    }
    (*

    A bootstrap message has been sent.

    *)
  16. | Advertise_received of {
    1. source : P2p_peer_id.t;
    }
    (*

    An advertise message has been received.

    *)
  17. | Advertise_sent of {
    1. source : P2p_peer_id.t;
    }
    (*

    An advertise message has been sent.

    *)
  18. | Swap_request_received of {
    1. source : P2p_peer_id.t;
    }
    (*

    A swap request has been received.

    *)
  19. | Swap_ack_received of {
    1. source : P2p_peer_id.t;
    }
    (*

    A swap ack has been received

    *)
  20. | Swap_request_sent of {
    1. source : P2p_peer_id.t;
    }
    (*

    A swap request has been sent

    *)
  21. | Swap_ack_sent of {
    1. source : P2p_peer_id.t;
    }
    (*

    A swap ack has been sent

    *)
  22. | Swap_request_ignored of {
    1. source : P2p_peer_id.t;
    }
    (*

    A swap request has been ignored

    *)
  23. | Swap_success of {
    1. source : P2p_peer_id.t;
    }
    (*

    A swap operation has succeeded

    *)
  24. | Swap_failure of {
    1. source : P2p_peer_id.t;
    }
    (*

    A swap operation has failed

    *)
  25. | Disconnection of P2p_peer_id.t
    (*

    We decided to close the connection.

    *)
  26. | External_disconnection of P2p_peer_id.t
    (*

    The connection was closed for external reason.

    *)
val pp : Stdlib.Format.formatter -> t -> unit
val encoding : t Data_encoding.t
OCaml

Innovation. Community. Security.