Skip to main content

Module session

Module session 

Source
Expand description

Transfer session state and PIN protection for the LocalSend HTTP server.

Structs§

ActiveUploadSession
An active upload session with accepted files.
DownloadFile
A download file registered with the download manager.
DownloadManager
Manager maintaining registered files and sessions for the reverse transfer / browser download API.
DownloadSession
An active or accepted reverse transfer download session for a client IP.
PendingSession
A pending session awaiting user decision (or auto-accept).
PinTracker
Thread-safe PIN attempt tracker with lockout capability.
SessionFile
Metadata and state for an individual file in an active upload session.
SessionManager
Manager maintaining session slots, concurrency bounds, and token authentication.

Enums§

FileTransferStatus
Status of an individual file in an active upload session.
PrepareUploadDecision
Decision made on an incoming prepare-upload request.
SessionEndReason
Reason why an upload session was closed.
SessionSlotState
Lifecycle state machine for the server’s transfer session slot.

Constants§

MAX_PIN_ATTEMPTS
Maximum failed PIN attempts per IP before temporary lockout (HTTP 429).