package tezos-base

  1. Overview
  2. Docs
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 : Format.formatter -> t -> unit
val pp_opt : 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
OCaml

Innovation. Community. Security.