package tezos-base

  1. Overview
  2. Docs
type addr_port_id = {
  1. addr : string;
  2. port : int option;
  3. peer_id : P2p_peer_id.t option;
}
type parsing_error =
  1. | Port_not_in_range of int
  2. | Bad_id_format of string
  3. | Bad_format
val string_of_parsing_error : parsing_error -> string
val parse_port : string option -> (int option -> ('a, parsing_error) result) -> ('a, parsing_error) result
val parse_peer_id : string option -> (P2p_peer_id.t option -> ('a, parsing_error) result) -> ('a, parsing_error) result
val parse_addr : string -> (string -> 'a) -> 'b
val make_full_addr : string -> string option -> string option -> (addr_port_id, parsing_error) result
val __ocaml_lex_tables : Stdlib.Lexing.lex_tables
val parse_full_addr : Lexing.lexbuf -> (addr_port_id, parsing_error) result
val __ocaml_lex_parse_full_addr_rec : Lexing.lexbuf -> int -> (addr_port_id, parsing_error) result
OCaml

Innovation. Community. Security.