package riot

  1. Overview
  2. Docs
include module type of struct include Runtime.Net.Addr end
type 't raw_addr = string
type tcp_addr = string
type stream_addr = [
  1. | `Tcp of tcp_addr * int
]
val loopback : tcp_addr
val tcp : string -> 'a -> [> `Tcp of string * 'a ]
val to_unix : [< `Tcp of tcp_addr * int ] -> Unix.socket_type * Unix.sockaddr
val to_domain : [< `Tcp of 'a * 'b ] -> Unix.socket_domain
val of_unix : Unix.sockaddr -> [> `Tcp of tcp_addr * int ]
val pp : Stdlib.Format.formatter -> stream_addr -> unit
val of_addr_info : Unix.addr_info -> [> `Tcp of string * int ] option
val of_uri : Uri.t -> [> `Tcp of string * int ] option
val get_info : [< `Tcp of string * int ] -> [> `Tcp of string * int ] list
OCaml

Innovation. Community. Security.