View Source quicer_remote_stream behaviour (quicer v0.0.303)

Stream initiated from remote

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
Prepare callback state before ownership handoff
Stream accepter is assigned to the owner of the new stream
Stream now in 'passive' mode.
Handle stream peer_receive_aborted
Handle stream peer_send_aborted.
Handle stream peer_send_shutdown.
Post handoff with PostData if any. Most common action is to set the stream mode to active.
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 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 listener_handle() :: reference().
-type reg_handle() :: reference().
-type stream_handle() :: reference().

Callbacks

Link to this callback

handle_call/3

View Source (optional)
-callback handle_call(Req :: term(), gen_server:from(), cb_state()) -> cb_ret().
Handle API call with callback state.
Link to this callback

handle_continue/2

View Source (optional)
-callback handle_continue(Cont :: term(), cb_state()) -> cb_ret().
Handle continue from other callbacks with callback state.
Link to this callback

handle_info/2

View Source (optional)
-callback handle_info(Info :: term(), cb_state()) -> cb_ret().
Handle unhandled info with callback state.
Link to this callback

handle_stream_data/4

View Source (optional)
-callback handle_stream_data(stream_handle(), binary(), recv_data_props(), cb_state()) -> cb_ret().
Stream handle data
Link to this callback

init_handoff/4

View Source (optional)
-callback init_handoff(stream_handle(), stream_opts(), connection_handle(), new_stream_props()) -> cb_ret().
Prepare callback state before ownership handoff
-callback new_stream(stream_handle(), new_stream_props(), connection_handle()) -> cb_ret().
Stream accepter is assigned to the owner of the new stream
-callback passive(stream_handle(), undefined, cb_state()) -> cb_ret().
Stream now in 'passive' mode.
-callback peer_receive_aborted(stream_handle(), error_code(), cb_state()) -> cb_ret().
Handle stream peer_receive_aborted
-callback peer_send_aborted(stream_handle(), error_code(), cb_state()) -> cb_ret().
Handle stream peer_send_aborted.
-callback peer_send_shutdown(stream_handle(), undefined, cb_state()) -> cb_ret().
Handle stream peer_send_shutdown.
Link to this callback

post_handoff/3

View Source (optional)
-callback post_handoff(stream_handle(), PostInfo :: term(), cb_state()) -> cb_ret().
Post handoff with PostData if any. Most common action is to set the stream mode to active.
Link to this callback

send_complete/3

View Source (optional)
-callback send_complete(stream_handle(), IsCanceled :: boolean(), cb_state()) -> cb_ret().
Handle send completed.
Link to this callback

send_shutdown_complete/3

View Source
-callback send_shutdown_complete(stream_handle(), IsGraceful :: boolean(), cb_state()) -> cb_ret().
Handle stream send_shutdown_complete. Happen immediately on an abortive send or after a graceful send has been acknowledged by the peer.
-callback stream_closed(stream_handle(), stream_closed_props(), cb_state()) -> cb_ret().
Handle stream closed, Both endpoints of sending and receiving of the stream have been shut down.