Module P2p_connection.Id

type t = P2p_addr.t * P2p_addr.port option

The host address and its optional listening port. The port is set to None in case the node doesn't have a welcome worker to accept incoming connections.

val compare : t -> t -> int
val equal : t -> t -> bool
val pp : Stdlib.Format.formatter -> t -> unit
val pp_opt : Stdlib.Format.formatter -> t option -> unit
val to_string : t -> string
val encoding : t Data_encoding.t
val is_local : t -> bool
val is_global : t -> bool
val of_point : P2p_point.Id.t -> t
val to_point : t -> P2p_point.Id.t option
val to_point_exn : t -> P2p_point.Id.t