accept_file_async


Description:

[ Version ( since = "0.17.1" ) ]
public async bool accept_file_async (File file, uint64 offset) throws Error

Accept an incoming file transfer in the PENDING state.

Once the accept has been processed, callback will be called. You can then call accept_file_async.end to get the result of the operation.

Parameters:

this

a FileTransferChannel

file

a File where the file should be saved

offset

Offset from the start of file where transfer begins

callback

a callback to call when the transfer has been accepted

user_data

data to pass to callback