Module NetTcp.Address

module Address: sig .. end

type t = Unix.inet_addr * int 
A network address (IP:Port, typically)
val encode : t -> Bencode.t
Serialize the address
val decode : Bencode.t -> t
May raise Invalid_argument
val eq : t -> t -> bool
Equality of adresses
val hash : t -> int
val with_port : t -> int -> t
Same address with a different port
val local : int -> t
Local adress, with the given port
val by_addr : string -> int -> t
Address with IPv4 + port
val by_name : string -> int -> t option Lwt.t
DNS lookup to find an IP, and make an adress out of it and the given port number
val fmt : Format.formatter -> t -> unit
val to_string : t -> string
module Tbl: Hashtbl.S  with type key = t