FileRecvCallback


Description:

[ CCode ( has_target = false ) ]
public delegate void FileRecvCallback (Tox self, uint32 friend_number, uint32 file_number, uint32 kind, uint64 file_size, uint8[] filename, void* user_data)

The client should acquire resources to be associated with the file transfer. Incoming file transfers start in the PAUSED state. After this callback returns, a transfer can be rejected by sending a FileControl.CANCEL control command before any other control commands. It can be accepted by sending FileControl.RESUME.

Parameters:

friend_number

The friend number of the friend who is sending the file transfer request.

file_number

The friend-specific file number the data received is associated with.

kind

The meaning of the file that was sent.

file_size

Size in bytes of the file the client wants to send, UINT64_MAX if unknown or streaming.

filename

Name of the file. Does not need to be the actual name. This name will be sent along with the file send request.