h2_listener (h2 v0.6.0)

View Source

Listener process: owns the listen socket and supervises the acceptor pool. Runs under h2_sup so the listener outlives the process that called h2:start_server/2.

Summary

Types

args/0

-type args() ::
          #{transport := transport(),
            listen_socket := term(),
            acceptor_count := pos_integer(),
            ref := reference(),
            acceptor_fun := fun((term()) -> no_return()),
            server_state := map()}.

transport/0

-type transport() :: ssl | tcp.

Functions

init(Parent, _)

start_link(Args)

-spec start_link(args()) -> {ok, pid()}.

stop(Pid, Ref)

-spec stop(pid(), reference()) -> ok.