View Source quicer_lib (quicer v0.2.12)

Summary

Types

-type action() :: hibernate | timeout() | {continue, Continue :: term()}.
-type cb_ret() :: cb_ret_noreply() | cb_ret_reply().
-type cb_ret_noreply() ::
    {ok, cb_state()} |
    {error, Reason :: term(), cb_state()} |
    {action(), cb_state()} |
    cb_ret_stop_noreply().
-type cb_ret_reply() ::
    {reply, Reply :: term(), cb_state()} |
    {reply, Reply :: term(), cb_state(), action()} |
    cb_ret_stop_reply().
-type cb_ret_stop_noreply() :: {stop, Reason :: term(), cb_state()}.
-type cb_ret_stop_reply() :: {stop, Reason :: term(), Reply :: term(), cb_state()}.
-type cb_state() :: term().
-type conf_handle() :: reference().
-type connection_handle() :: reference().
-type global_handle() :: quic_global.
-type listener_handle() :: reference().
Link to this type

lost_suspect_callback/0

View Source
-type lost_suspect_callback() ::
    {fun((connection_handle(), term(), term()) -> term()), term()} | {atom(), term()}.
-type probe_res() :: #probe_state{} | {error, dgram_send_error, atom()} | {error, atom()}.
-type reg_handle() :: reference().
-type stream_handle() :: reference().

Functions

Link to this function

default_cb_ret(_, State)

View Source
-spec default_cb_ret(cb_ret(), State :: term()) ->
                  {reply, NewState :: term()} |
                  {reply, NewState :: term(), action()} |
                  {noreply, NewState :: term()} |
                  {noreply, NewState :: term(), action()} |
                  {stop, Reason :: term(), Reply :: term(), NewState :: term()} |
                  {stop, Reason :: term(), NewState :: term()}.
Link to this function

handle_dgram_send_states(Conn)

View Source
-spec handle_dgram_send_states(connection_handle()) ->
                            ok |
                            {error,
                             dgram_send_canceled | dgram_send_unknown | dgram_send_lost_discarded}.
Link to this function

handle_dgram_send_states(Conn, CB, Timeout)

View Source
-spec handle_dgram_send_states(connection_handle(), lost_suspect_callback(), timeout()) -> any().
-spec probe(connection_handle(), timeout()) -> probe_res().