View Source quicer_local_stream behaviour (quicer v0.0.303)
Summary
Callbacks
Handle API call with callback state.
Handle continue from other callbacks with callback state.
Handle unhandled info with callback state.
Stream handle data
Stream now in 'passive' mode.
Handle stream 'peer_accepted'. The stream which **was not accepted** due to peer flow control is now accepted by the peer.
Handle stream peer_receive_aborted
Handle stream peer_send_aborted.
Handle stream peer_send_shutdown.
Handle send completed.
Handle stream send_shutdown_complete. Happen immediately on an abortive send or after a graceful send has been acknowledged by the peer.
Handle local initiated stream start completed
Handle stream closed, Both endpoints of sending and receiving of the stream have been shut down.
Types
-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 reg_handle() :: reference().
-type stream_handle() :: reference().
Callbacks
-callback handle_call(Req :: term(), gen_server:from(), cb_state()) -> cb_ret().
-callback handle_continue(Cont :: term(), cb_state()) -> cb_ret().
-callback handle_info(Info :: term(), cb_state()) -> cb_ret().
-callback handle_stream_data(stream_handle(), binary(), recv_data_props(), cb_state()) -> cb_ret().
-callback passive(stream_handle(), undefined, cb_state()) -> cb_ret().
-callback peer_accepted(connection_handle(), stream_handle(), cb_state()) -> cb_ret().
-callback peer_receive_aborted(stream_handle(), error_code(), cb_state()) -> cb_ret().
-callback peer_send_aborted(stream_handle(), error_code(), cb_state()) -> cb_ret().
-callback peer_send_shutdown(stream_handle(), undefined, cb_state()) -> cb_ret().
-callback send_complete(stream_handle(), IsCanceled :: boolean(), cb_state()) -> cb_ret().
-callback send_shutdown_complete(stream_handle(), IsGraceful :: boolean(), cb_state()) -> cb_ret().
-callback start_completed(stream_handle(), stream_start_completed_props(), cb_state()) -> cb_ret().
-callback stream_closed(stream_handle(), stream_closed_props(), cb_state()) -> cb_ret().