Skip to main content

Crate openrtc_file_transfer

Crate openrtc_file_transfer 

Source
Expand description

Optional file-transfer protocol over application-provided protected routes.

OpenRTC owns peer admission and the stream. This crate owns only reusable framing, resumable route frames, and bounded file IO. Consumer applications retain acceptance, destination, queue, history, billing, and notification policy.

Structs§

FileTransferHeader
ReceivedFile
TransferLimits

Enums§

RoutedTransferFrame
One bounded file-transfer message sent through OpenRTC’s current-route selector. A transfer is a sequence of these frames, not one physical stream, so route promotion or replacement does not discard confirmed work.
TransferError

Constants§

DEFAULT_CHUNK_BYTES
DEFAULT_MAX_FILE_BYTES
DEFAULT_MAX_HEADER_BYTES
DEFAULT_ROUTED_CHUNK_BYTES
MAX_ROUTED_TRANSFER_ID_BYTES
ROUTED_FRAME_MAGIC

Functions§

receive_to_directory
sanitize_file_name
send_path