set_file_transfer_initial_offset


Description:

[ Version ( since = "0.19.0" ) ]
public void set_file_transfer_initial_offset (uint64 offset)

Configure this channel request to inform the recipient of the file that this channel will not send the first offset bytes of the file.

In some protocols, this can be used to resume an interrupted transfer.

If this method is not called, the default is to start from the beginning of the file (equivalent to offset = 0).

If offsets greater than 0 are not supported by the protocol, or if this method is used on a request that is not actually a file transfer, the channel request will fail. Use supports_file_transfer_initial_offset to determine whether offsets greater than 0 are available.

This function can't be called once this has been used to request a channel.

Parameters:

this

a AccountChannelRequest

offset

the offset into the file at which the transfer will start




2022 vala-language.org