Search documentation of macula

# macula_quic_conn_callback (macula v0.44.2)

View Source

QUIC connection callback module for Macula. Implements quicer_connection behavior to handle connection lifecycle.

# Summary

## Functions

closed(Conn, Flags, State)

Handle connection closed

connected(Conn, Flags, State)

Handle connection established

handle_info(Info, State)

Handle other messages

init(ConnOpts)

Initialize connection callback state

local_address_changed(Conn, NewAddr, State)

Handle local address changed

new_conn(Conn, ConnProps, State)

Handle new connection With quicer_server, streams are delivered automatically via new_stream/3

new_stream(Stream, Props, State)

Handle new stream With quicer_server, ALL streams are delivered here (not just orphans) Forward them to the gateway for processing

nst_received(Conn, Data, State)

Handle NST received (not used for server)

peer_address_changed(Conn, NewAddr, State)

Handle peer address changed (NAT rebinding) This callback is triggered when the peer's observed address changes. Log the change and notify the gateway.

peer_needs_streams(Conn, Undefined, State)

Handle peer needs streams

resumed(Conn, Data, State)

Handle connection resumed

shutdown(Conn, Reason, State)

Handle connection shutdown

streams_available(Conn, _, State)

Handle streams available

transport_shutdown(Conn, _, State)

Handle transport shutdown

# Functions

# closed(Conn, Flags, State)

Handle connection closed

# connected(Conn, Flags, State)

Handle connection established

# handle_info(Info, State)

Handle other messages

# init(ConnOpts)

Initialize connection callback state

# local_address_changed(Conn, NewAddr, State)

Handle local address changed

# new_conn(Conn, ConnProps, State)

Handle new connection With quicer_server, streams are delivered automatically via new_stream/3

# new_stream(Stream, Props, State)

Handle new stream With quicer_server, ALL streams are delivered here (not just orphans) Forward them to the gateway for processing

# nst_received(Conn, Data, State)

Handle NST received (not used for server)

# peer_address_changed(Conn, NewAddr, State)

Handle peer address changed (NAT rebinding) This callback is triggered when the peer's observed address changes. Log the change and notify the gateway.

# peer_needs_streams(Conn, Undefined, State)

Handle peer needs streams

# resumed(Conn, Data, State)

Handle connection resumed

# shutdown(Conn, Reason, State)

Handle connection shutdown

# streams_available(Conn, _, State)

Handle streams available

# transport_shutdown(Conn, _, State)

Handle transport shutdown