Home | Trees | Index | Help |
---|
Package xmpp :: Module filetransfer :: Class IBB |
|
PlugIn
--+
|
IBB
Method Summary | |
---|---|
Initialise internal variables. | |
Handles streams state change. | |
Start new stream. | |
Register handlers for receiving incoming datastreams. | |
Receive next portion of incoming datastream and store it write it to temporary file. | |
Send next portion of data if it is time to do it. | |
Handle stream closure due to all some error while receiving data. | |
Handle stream closure due to all data transmitted. | |
Handles opening of new incoming stream. | |
Handle remote side reply about is it agree or not to receive our datastream. | |
Inherited from PlugIn | |
Feed a provided debug line to main instance's debug facility along with our ID string. | |
Attach to main instance and register ourself and all our staff in it. | |
Unregister all our staff from main instance and detach from it. |
Method Details |
---|
__init__(self)
Initialise internal variables.
|
IqHandler(self, conn, stanza)Handles streams state change. Used internally. |
OpenStream(self, sid, to, fp, blocksize=3000)Start new stream. You should provide stream id 'sid', the endpoind jid 'to', the file object containing info for send 'fp'. Also the desired blocksize can be specified. Take into account that recommended stanza size is 4k and IBB uses base64 encoding that increases size of data by 1/3. |
plugin(self, owner)Register handlers for receiving incoming datastreams. Used internally. |
ReceiveHandler(self, conn, stanza)Receive next portion of incoming datastream and store it write it to temporary file. Used internally. |
SendHandler(self, conn)Send next portion of data if it is time to do it. Used internally. |
StreamBrokenHandler(self, conn, stanza)Handle stream closure due to all some error while receiving data. Raise xmpppy event specifying unsuccessfull data receive. |
StreamCloseHandler(self, conn, stanza)Handle stream closure due to all data transmitted. Raise xmpppy event specifying successfull data receive. |
StreamOpenHandler(self, conn, stanza)Handles opening of new incoming stream. Used internally. |
StreamOpenReplyHandler(self, conn, stanza)Handle remote side reply about is it agree or not to receive our datastream. Used internally. Raises xmpppy event specfiying if the data transfer is agreed upon. |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sun Dec 26 09:52:57 2004 | http://epydoc.sf.net |