Skip to main content

Module manager

Module manager 

Source

StructsΒ§

SessionManager
Manages lifecycles of Sessions.
SessionManagerConfig
Configuration for the SessionManager.
SessionSlot πŸ”’
SessionSlotGuard πŸ”’
RAII guard that rolls back a freshly inserted SessionSlot unless the session setup is explicitly committed.

EnumsΒ§

DispatchResult
Indicates the result of processing a message.
DropReason
Why an inbound session data packet was dropped without being delivered.
SessionHandles πŸ”’
Handles to streams and tasks spawned by the Session.

ConstantsΒ§

EXTERNAL_SEND_TIMEOUT πŸ”’
Timeout when sending Start protocol messages to the sink
MIN_CHALLENGE πŸ”’
The first challenge value used in Start protocol to initiate a session.
MIN_FRAME_TIMEOUT πŸ”’
Minimum timeout until an unfinished frame is discarded.
MIN_SURB_BUFFER_DURATION
Minimum time the SURB buffer must endure if no SURBs are being produced.
MIN_SURB_BUFFER_NOTIFICATION_PERIOD
Minimum time between SURB buffer notifications to the Entry.
SESSION_FORWARD_CAPACITY
How many packets can be buffered if the HoprSession socket is not fast enough.
SESSION_READINESS_TIMEOUT πŸ”’
Maximum time to wait for counterparty to receive the target number of SURBs.

FunctionsΒ§

cap_organic_surbs πŸ”’
Caps how many SURBs an outgoing Session data packet may carry, per the SURB balancer.
close_session πŸ”’
initiation_timeout_max_one_way πŸ”’
send_via_msg_sender πŸ”’
session_config πŸ”’
session_config_with πŸ”’
As session_config, with the initiating session’s own head-of-line bound.

Type AliasesΒ§

IncomingSessionSink πŸ”’
SessionInitiationCache πŸ”’
SessionNotifiers πŸ”’
StartProtocolMsgSink πŸ”’