Expand description
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 - Listener
Join Handles - 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ยง
- bind_
session_ ๐to_ stream - build_
binding_ host - This function first tries to parse
requestedas theip:porthost pair. If that does not work, it tries to parserequestedas 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 - tcp_
listen_ ๐on - Listen on a specified address with a port from an optional port range for TCP connections.
- try_
restricted_ ๐bind - udp_
bind_ to