Module Net.Sockaddr

Network addresses.

type stream = [
  1. | `Unix of string
  2. | `Tcp of Ipaddr.v4v6 * int
]

Socket addresses that we can build a Flow.two_way for i.e. stream-oriented protocols.

type datagram = [
  1. | `Udp of Ipaddr.v4v6 * int
  2. | `Unix of string
]

Socket addresses that are message-oriented.

type t = [
  1. | stream
  2. | datagram
]
val pp : Format.formatter -> [< t ] -> unit