blazeauth
GuidesCpp

C++ file transfer guide

Transfer protected files over a socket session with stop/resume support.

C++ file transfer guide

Blazeauth file transfer is a streaming protocol over WebSocket:

  1. send a JSON request with type = transfer_file
  2. send a binary frame with the chunk bytes (optional when chunk_size = 0)
  3. receive a JSON response (transfer_file_result)
  4. repeat until the server indicates completion

Two messages per chunk

Each chunk is sent as two WebSocket messages: JSON header → binary payload.

File transfer flow
Each chunk is JSON header + binary frame.

Stop and resume

You can stop a transfer and optionally request a resume_token. To continue later, call resume_file_transfer with that token.

On this page