package async_unix

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

Module Tcp.Where_to_connectSource

A Where_to_connect describes the socket that a tcp client should connect to.

Sourcetype 'a t constraint 'a = [< Async_unix__.Unix_syscalls.Socket.Address.t ]
Sourceval sexp_of_t : ('a -> Sexplib0.Sexp.t) -> 'a t -> Sexplib0.Sexp.t
Sourcetype inet = [ `Inet of Core_unix__.Import.Unix.inet_addr * int ] t
Sourceval sexp_of_inet : inet -> Sexplib0.Sexp.t
Sourcetype unix = [ `Unix of string ] t
Sourceval sexp_of_unix : unix -> Sexplib0.Sexp.t
Sourceval remote_address : 'a t -> 'a Async_kernel.Deferred.t
Sourceval of_host_and_port : ?bind_to_address:Async_unix__.Import.Unix.Inet_addr.t -> ?bind_to_port:int -> ?show_port_in_test:bool -> Core.Host_and_port.t -> inet

bind_to_address and bind_to_port can be used to bind the source IP and port of the underlying socket. This does not necessarily alter the interface used to send the data. In particular, the commonly used destination-based routing is unaffected by binding to a different address.

Sourceval of_inet_address : ?bind_to_address:Async_unix__.Import.Unix.Inet_addr.t -> ?bind_to_port:int -> ?show_port_in_test:bool -> [ `Inet of Core_unix__.Import.Unix.inet_addr * int ] -> inet
Sourceval of_file : string -> unix
Sourceval of_unix_address : [ `Unix of string ] -> unix
OCaml

Innovation. Community. Security.