Expand description
Session-related utilities (available when utils_session feature is enabled) Session-related utilities for HOPR
This module provides utility functions and structures for managing sessions, including session lifecycle management, session data handling, and common session operations.
Structs§
- Listener
Id - Session
Pool - Stored
Session Entry - Entry stored in the session registry table.
Enums§
- Bind
Error - Session
Target Spec - Session target specification.
Constants§
- HOPR_
TCP_ BUFFER_ SIZE - Size of the buffer for forwarding data to/from a TCP stream.
- HOPR_
UDP_ BUFFER_ SIZE - Size of the buffer for forwarding data to/from a UDP stream.
- HOPR_
UDP_ QUEUE_ SIZE - Size of the queue (back-pressure) for data incoming from a UDP stream.
Functions§
- build_
binding_ host - This function first tries to parse
requested
as theip:port
host pair. If that does not work, it tries to parserequested
as a single IP address and as a:
prefixed port number. Whichever of those fails, is replaced by the corresponding part from the givendefault
. - create_
tcp_ client_ binding - create_
udp_ client_ binding - udp_
bind_ to