The TransferSource is an interface (Mix-in) which sources for FileTransfer#offer should include
Does implement the methods seek and length= ?
FileTransfer will only then offer a ranged transfer.
or [true]
# File lib/xmpp4r/bytestreams/helper/filetransfer.rb, line 58 def can_range? false end
Date of the offered file, can be nil
# File lib/xmpp4r/bytestreams/helper/filetransfer.rb, line 35 def date end
Filename of the offered file
# File lib/xmpp4r/bytestreams/helper/filetransfer.rb, line 19 def filename end
Set the amount of data to send for ranged transfers
# File lib/xmpp4r/bytestreams/helper/filetransfer.rb, line 51 def length=(l) end
MD5-Sum of the offered file, can be nil
# File lib/xmpp4r/bytestreams/helper/filetransfer.rb, line 31 def md5 end
Mime-type of the offered file, can be nil
# File lib/xmpp4r/bytestreams/helper/filetransfer.rb, line 23 def mime end
Read a chunk from the source
If this is a ranged transfer, it should implement length checking
# File lib/xmpp4r/bytestreams/helper/filetransfer.rb, line 43 def read(length=nil) end
Seek in the source for ranged transfers
# File lib/xmpp4r/bytestreams/helper/filetransfer.rb, line 47 def seek(position) end
Size of the offered file
# File lib/xmpp4r/bytestreams/helper/filetransfer.rb, line 27 def size end