List Info

Thread: Re: Message size, and attachments




Re: Message size, and attachments
user name
2007-10-15 15:53:41
Norman Rasmussen wrote:
> On 10/11/07, Douglas S. Blank <dblankcs.brynmawr.edu> wrote:
>> Norman Rasmussen wrote:
>> [snip]
>>> For sending large files you need to use ibb or
socks.  They're both
>>> defined in their own xep's, and you can use the
SI xep to initiate the
>>> transfer.
>> Sorry, but I don't understand that paragraph. Can
you point to any
>> sample code? I don't know: ibb, xep, SI, and I
thought socks went on my
>> feet  I'm just a
regular user of xmpppy, not a developer of Jabber stuff.
> 
> ahh, xep's come from http://www.xmpp.org/e
xtensions/
> 
> the ones that might interest you are:
>  - XEP-0065 	SOCKS5 Bytestreams
>  - XEP-0047 	In-Band Bytestreams (IBB)
>  - XEP-0095 	Stream Initiation
>  - XEP-0137 	Publishing SI Requests

Thanks! I see that those are indeed ideas related to my
question. I'm 
still confused about how I take this information and turn it
into a 
method so that I could attach a file to a message.

I'm using xmpppy and xmppd. I construct messages in Python
with 
something like:

         client = xmpp.Client(server, debug=debug)
         print "Making connection to server..."
         client.connect()
         print "Registering '%s'..." % name
         xmpp.features.register(client, server,
                                {"username":
name.lower(),
                                 "password":
password})
         client.auth(self.name.lower(), password)
         client.RegisterHandler('message', messageCB)
         client.sendInitPresence()

I'm running the xmppd.py from the front page of 
http://xmpppy.sourcefo
rge.net/

If I'm asking these questions in the wrong place, please let
me know. 
Thanks!

-Doug

------------------------------------------------------------
-------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and
a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Xmpppy-devel mailing list
Xmpppy-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xmpppy-dev
el

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )