quic_happy (quic v1.6.4)

View Source

Summary

Functions

Establish a client connection. Runs resolution in the caller.

RFC 8305 §4 address ordering: interleave families, IPv6 first.

Classify a host: a (possibly bracketed) IP literal or a name.

Functions

connect(Host, Port, Opts, Owner, Socket)

-spec connect(inet:ip_address() | binary() | string(),
              inet:port_number(),
              map(),
              pid(),
              gen_udp:socket() | undefined) ->
                 {ok, pid()} | {error, term()}.

Establish a client connection. Runs resolution in the caller.

coordinator_entry(Args)

-spec coordinator_entry(map()) -> no_return().

interleave(L6, L4)

-spec interleave(list(), list()) -> list().

RFC 8305 §4 address ordering: interleave families, IPv6 first.

parse_host(IP)

-spec parse_host(inet:ip_address() | binary() | string()) ->
                    {literal, inet:ip_address()} | {name, string()}.

Classify a host: a (possibly bracketed) IP literal or a name.

start_coordinator(Args)

-spec start_coordinator(map()) -> {ok, pid()}.