how to send files over prosody

5,185 views
Skip to first unread message

Mark Macumber

unread,
Aug 8, 2013, 7:01:49 PM8/8/13
to prosod...@googlegroups.com
I am trying to search through the groups and the doco to file a way to send files between two chat clients on the same local network via prosody.

Can anyone let me know how this is done? I have found the XMPP standard XEP-0096, but I cannot see a module that implements this?

Cenk İlker İzanlı

unread,
Aug 8, 2013, 8:36:45 PM8/8/13
to prosod...@googlegroups.com


2013/8/9 Mark Macumber <mark.m...@gmail.com>
I am trying to search through the groups and the doco to file a way to send files between two chat clients on the same local network via prosody.

Can anyone let me know how this is done? I have found the XMPP standard XEP-0096, but I cannot see a module that implements this?

--
You received this message because you are subscribed to the Google Groups "Prosody IM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prosody-user...@googlegroups.com.
To post to this group, send an email to prosod...@googlegroups.com.
Visit this group at http://groups.google.com/group/prosody-users.
For more options, visit https://groups.google.com/groups/opt_out.

Mark Macumber

unread,
Aug 8, 2013, 8:56:34 PM8/8/13
to prosod...@googlegroups.com
Thanks, I cannot find an example on how to use this module though, only set it up, do you have any more experience with this?

Stanislav N. aka pztrn

unread,
Aug 9, 2013, 5:28:28 AM8/9/13
to prosod...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In main config:
proxy65_ports = { 7777 }

In vhost config:
Component "proxy.domain" "proxy65"
proxy65_address = "proxy.domain"

Make sure you have this port opened :)

09.08.2013 04:56, Mark Macumber ?????:
> Thanks, I cannot find an example on how to use this module though,
> only set it up, do you have any more experience with this?
>
> On Friday, August 9, 2013 9:01:49 AM UTC+10, Mark Macumber wrote:
>>
>> I am trying to search through the groups and the doco to file a
>> way to send files between two chat clients on the same local
>> network via prosody.
>>
>> Can anyone let me know how this is done? I have found the XMPP
>> standard * XEP-0096*, but I cannot see a module that implements
>> this?
>>
>

- --
Stanislav N. aka pztrn
Jabber: pz...@pztrn.name
E-Mail: pz...@pztrn.name
Blog: http://pztrn.name
Key ID: 1B181688
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSBLY8AAoJEMUnU+sbGBaIAxcH+wTUXPqPfjwVitQLl2cFatMD
wVe2DU1AQ4j/31pulbZkC6UVk0lWKOqFFS+QF2a2tTLHHgoBh/hCwT5G1P5yqYiD
QvtdP9+bSMGgABd9RPkwINRJkFjEJI1IdB4AuqUQ3pnTXAZnZSCKPsBOmytloV3x
U0oTfqmC94OG80b47oLhwGfWOlWWMBDuKXXuRbI+YTrJx2zVefYhdDlL24sB6TAy
4+thRicWlBVntKlwWGjGV6WiLwbN8w1enSPQcvP89X5fuReOOf94G790+AvIvrdA
Y3sbmwEuetm2j5FVRJzHn9iRpxjozGzKcrRgPygIpU06gPFUB9ZTfCGI0ow60Ls=
=Y+Li
-----END PGP SIGNATURE-----

Mark Macumber

unread,
Aug 9, 2013, 8:30:06 AM8/9/13
to prosod...@googlegroups.com
I saw that, I guess I was more asking about the client apps, but that depends on the client libraries. Im using Jabber.net and asmack for Android.

I can also see a few options XEP-0065, XEP-0096, OOB or IIB?

I would like some advice on the approaches to this if anyone has any?


On Friday, August 9, 2013 9:01:49 AM UTC+10, Mark Macumber wrote:

Matthew Wild

unread,
Aug 9, 2013, 9:27:21 AM8/9/13
to Prosody IM Users Group
On 9 August 2013 13:30, Mark Macumber <mark.m...@gmail.com> wrote:
> I saw that, I guess I was more asking about the client apps, but that
> depends on the client libraries. Im using Jabber.net and asmack for Android.
>
> I can also see a few options XEP-0065, XEP-0096, OOB or IIB?
>
> I would like some advice on the approaches to this if anyone has any?

I suggest posting your question to the jdev or standards lists over at
the XSF, where you'll reach client developers who have experience
implementing file transfer.

Unfortunately the internet being what it is (NATs and firewalls in
particular), sending a file directly to another person is not a
trivial task.

But there are only four basic XEPs you need to care about, at most.
Two are about negotiation, and two are about transports.

For an end-user IM client you want to start with XEP-0096 (older)
and/or XEP-0234 (newer). These describe how two clients can exchange
file transfer requests and find out the best transport to use between
them. Possible transports are for example XEP-0065 and XEP-0047.

XEP-0065 allows for direct connection between the clients when one or
both of the clients are not behind a NAT or firewall. It also allows
the clients to use a proxy on the server (if available) to get the
file through even if both clients are firewalled. This is mod_proxy65
in Prosody.

XEP-0047 is a hack which involves sending the file data over the XMPP
stream. It's practically guaranteed to always work if both clients
support it, and it's quite easy to implement. However...! It is
extremely inefficient, clogs up the XMPP stream, and the server may
rate limit you, making it very slow. You definitely don't want to send
a HD movie this way :) For really small files though (a handful of
KBs?), it's ok.

A good library will have all this implemented for you already!

Hope this helps.

Regards,
Matthew

Mark Macumber

unread,
Aug 13, 2013, 5:45:07 AM8/13/13
to prosod...@googlegroups.com
Thanks so much for the info Matt, really appreciated, I will endeavour to find out more and let you know how I go.
Reply all
Reply to author
Forward
0 new messages