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 handle() :: global_handle() | listener_handle() | connection_handle() | stream_handle() | conf_handle() | reg_handle().
-type listener_handle() :: reference().
-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
-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()}.
-spec handle_dgram_send_states(connection_handle()) -> ok | {error, dgram_send_canceled | dgram_send_unknown | dgram_send_lost_discarded}.
-spec handle_dgram_send_states(connection_handle(), lost_suspect_callback(), timeout()) -> any().
-spec probe(connection_handle(), timeout()) -> probe_res().