package async_unix

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Tcp.Where_to_listenSource

A Where_to_listen describes the socket that a tcp server should listen on.

Sourcetype ('address, 'listening_on) t constraint 'address = [< Async_unix__.Unix_syscalls.Socket.Address.t ]
Sourceval sexp_of_t : ('address -> Sexplib0.Sexp.t) -> ('listening_on -> Sexplib0.Sexp.t) -> ('address, 'listening_on) t -> Sexplib0.Sexp.t
Sourcetype inet = ([ `Inet of Core_unix__.Import.Unix.inet_addr * int ], int) t
Sourceval sexp_of_inet : inet -> Sexplib0.Sexp.t
Sourcetype unix = ([ `Unix of string ], string) t
Sourceval sexp_of_unix : unix -> Sexplib0.Sexp.t
Sourceval create : socket_type:'address Async_unix__.Unix_syscalls.Socket.Type.t -> address:'address -> listening_on:('address -> 'listening_on) -> ('address, 'listening_on) t
Sourceval address : ('address, _) t -> 'address

Listen on the specified port on the specified addresses.

Sourceval of_port : int -> inet

of_port port is bind_to All_addresses (On_port port).

Sourceval of_port_chosen_by_os : inet

of_port_chosen_by_os port is bind_to All_addresses On_port_chosen_by_os.

Sourceval of_file : string -> unix

Listen on a unix domain socket using the specified path.