Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

File Transfer

ov1d1u edited this page Jan 16, 2014 · 1 revision

Steps for receiving a file transfer with libemussa:

  1. On receiving a file transfer, callback EMUSSA_CALLBACK_FILE_TRANSFER_REQUEST is called
  2. When the user accepts the file transfer, call accept_transfer from libemussa library
  3. Yahoo will send a file info packet; EMUSSA_CALLBACK_FILE_TRANSFER_INFO will be called
  4. Download the file; if the transfer contains multiple files, after each successfully download call accept_transfer_next_file to get the next file (then the workflow restarts from point 3).

Steps for sending a file transfer with libemussa:

  1. Call send_files from libemussa
  2. When the other user will accept the file, callback EMUSSA_CALLBACK_FILE_TRANSFER_ACCEPT is called; otherwise libemussa will call EMUSSA_CALLBACK_FILE_TRANSFER_REJECT callback.
  3. TODO
  4. TODO

.......

Clone this wiki locally