Table of Contents

file

C → S → C {type:'file', from:…, name:…, nr:…, of:…, data:…}

Transfer a chunk of file. Reception of file is acknowledged by sending back a fack message.

arguments:

  • from - name of client sending the file
  • name - name of file
  • nr - chunk sequential number
  • of - number of chunks constituting the file
  • data - file chunk encoded in base64

optional arguments:

  • to - name of client file is sent to
  • c2c - client to client mode:
    • "yes": do not forward message through SIP, only through direct connection to another wrtc client connected to same server

error

C → S → C {type:'file', from:…, error:…}

arguments:

  • from - name of client reporting the error
  • error - error message:
    • "001: File transmit aborted": file transfer aborted by user (optional argument from supplied, see below)
    • "101: Packet order mismatch": file chunks received in wrong order (optional argument nr supplied, see below)

optional arguments:

  • to - name of client file was attempted to be sent to
  • nr - received, incorrect chunk sequential number

get_log

C → S → C {type:'file', get_log:true, from:…, to:…}

arguments:

  • get_log - always true
  • from - name of client asking for log
  • to - name of client requested to send log

Upon receiving a get_log request client should send it's wrtc_kit log back to the requesting client. Is not aknowledged by any fack message but by a new file message in the opposite direction, containing the first part of the log file.

see also

ixnx/wrtc/rtcgate/file.txt · Last modified: by tibor
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0