quic_conn_sup (quic v1.6.2)

View Source

Summary

Functions

Start a supervised client connection attempt. The connection is linked to this supervisor (not the caller), so the Happy Eyeballs coordinator can race several attempts and keep the winner after it exits. Returns the connection pid.

Functions

init(_)

start_child(Host, Port, Opts, Owner)

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

Start a supervised client connection attempt. The connection is linked to this supervisor (not the caller), so the Happy Eyeballs coordinator can race several attempts and keep the winner after it exits. Returns the connection pid.

start_link()

-spec start_link() -> {ok, pid()} | {error, term()}.