Module Jabber::FileTransfer::TransferSource
In: lib/xmpp4r/bytestreams/helper/filetransfer.rb
XMLStanza Message Presence Iq REXML::Element X IqQuery Error StreamHost IqSiFileRange IqSiFile StreamHostUsed IqSi XRosterItem RosterItem IqFeature XMUCUserItem XMUCUserInvite XDataField XDataReported XDataTitle XDataInstructions Feature Identity Item IqVcard Singleton IdGenerator Connection Client Component Comparable JID RuntimeError AuthenticationFailure ErrorException SOCKS5Error Stream SOCKS5Bytestreams SOCKS5BytestreamsTarget SOCKS5BytestreamsInitiator SOCKS5BytestreamsServerStreamHost TCPSocket SOCKS5Socket IBB IBBTarget IBBInitiator IqQuery IqQueryBytestreams IqQueryVersion IqQueryRoster IqQueryDiscoItems IqQueryDiscoInfo Responder SimpleResponder X XRoster XMUCUser XMUC XDelay XData MUCClient SimpleMUCClient Base DigestMD5 Plain FileSource StreamParser SOCKS5BytestreamsPeer SOCKS5BytestreamsServer IBBQueueItem Helper MUCBrowser Helper Helper lib/xmpp4r/authenticationfailure.rb lib/xmpp4r/idgenerator.rb lib/xmpp4r/connection.rb lib/xmpp4r/iq.rb lib/xmpp4r/jid.rb lib/xmpp4r/xmlstanza.rb lib/xmpp4r/errorexception.rb lib/xmpp4r/stream.rb lib/xmpp4r/client.rb lib/xmpp4r/x.rb lib/xmpp4r/streamparser.rb lib/xmpp4r/error.rb lib/xmpp4r/component.rb lib/xmpp4r/query.rb lib/xmpp4r/message.rb lib/xmpp4r/presence.rb lib/xmpp4r/bytestreams/helper/ibb/initiator.rb lib/xmpp4r/bytestreams/iq/si.rb lib/xmpp4r/bytestreams/iq/bytestreams.rb lib/xmpp4r/bytestreams/helper/socks5bytestreams/base.rb lib/xmpp4r/bytestreams/helper/socks5bytestreams/target.rb lib/xmpp4r/bytestreams/helper/socks5bytestreams/server.rb lib/xmpp4r/bytestreams/helper/socks5bytestreams/socks5.rb lib/xmpp4r/bytestreams/helper/socks5bytestreams/initiator.rb lib/xmpp4r/bytestreams/helper/ibb/base.rb lib/xmpp4r/bytestreams/helper/ibb/target.rb Bytestreams lib/xmpp4r/version/iq/version.rb lib/xmpp4r/version/helper/responder.rb lib/xmpp4r/version/helper/simpleresponder.rb Version lib/xmpp4r/roster/helper/roster.rb lib/xmpp4r/roster/iq/roster.rb lib/xmpp4r/roster/x/roster.rb Roster lib/xmpp4r/feature_negotiation/iq/feature.rb FeatureNegotiation lib/xmpp4r/muc/x/muc.rb lib/xmpp4r/muc/helper/mucclient.rb lib/xmpp4r/muc/x/mucuseritem.rb lib/xmpp4r/muc/helper/mucbrowser.rb lib/xmpp4r/muc/x/mucuserinvite.rb lib/xmpp4r/muc/helper/simplemucclient.rb MUC lib/xmpp4r/sasl.rb SASL lib/xmpp4r/bytestreams/helper/filetransfer.rb TransferSource FileTransfer lib/xmpp4r/delay/x/delay.rb Delay lib/xmpp4r/dataforms/x/data.rb Dataforms lib/xmpp4r/discovery/iq/discoinfo.rb lib/xmpp4r/discovery/iq/discoitems.rb Discovery lib/xmpp4r/vcard/helper/vcard.rb lib/xmpp4r/vcard/iq/vcard.rb Vcard Jabber dot/m_60_0.png

The TransferSource is an interface (Mix-in) which sources for FileTransfer#offer should include

Methods

can_range?   date   filename   length=   md5   mime   read   seek   size  

Public Instance methods

Does implement the methods seek and length= ?

FileTransfer will only then offer a ranged transfer.

result:[false] or [true]

[Source]

    # File lib/xmpp4r/bytestreams/helper/filetransfer.rb, line 55
55:       def can_range?
56:         false
57:       end

Date of the offered file, can be nil

[Source]

    # File lib/xmpp4r/bytestreams/helper/filetransfer.rb, line 32
32:       def date
33:       end

Filename of the offered file

[Source]

    # File lib/xmpp4r/bytestreams/helper/filetransfer.rb, line 16
16:       def filename
17:       end

Set the amount of data to send for ranged transfers

[Source]

    # File lib/xmpp4r/bytestreams/helper/filetransfer.rb, line 48
48:       def length=(l)
49:       end

MD5-Sum of the offered file, can be nil

[Source]

    # File lib/xmpp4r/bytestreams/helper/filetransfer.rb, line 28
28:       def md5
29:       end

Mime-type of the offered file, can be nil

[Source]

    # File lib/xmpp4r/bytestreams/helper/filetransfer.rb, line 20
20:       def mime
21:       end

Read a chunk from the source

If this is a ranged transfer, it should implement length checking

length:[Fixnum]

[Source]

    # File lib/xmpp4r/bytestreams/helper/filetransfer.rb, line 40
40:       def read(length=nil)
41:       end

Seek in the source for ranged transfers

[Source]

    # File lib/xmpp4r/bytestreams/helper/filetransfer.rb, line 44
44:       def seek(position)
45:       end

Size of the offered file

[Source]

    # File lib/xmpp4r/bytestreams/helper/filetransfer.rb, line 24
24:       def size
25:       end

[Validate]