Not logged in. · Lost password · Register
Forum: agsXMPP SDK Support RSS
Avatar
javanesevn #1
Member since Apr 2008 · 74 posts · Location: Japan
Group memberships: Members
Show profile · Link to this post
Subject: About XEP-??? in agsXMPP and File transfer
I saw this link http://www.ag-software.net/index.php?page=agsxmpp-sdk ,these features is not included SOCKS5..  and how many XEPs has implemented in agsXMPP?

In detail, I will add file transfer function into my application. I searched in forum and see many discuss related in SOCKS5 and how about XEP-0096?

In my case, I have some clients locate in same LAN and other behind NAT/Firewall so they can transfer file each other. I try to run miniClient but it is not success with me, receiver side is closed when Receiver click [Accept] button.

In miniClient's fileTransfer code Sender PC and Receiver PC in the same LAN can have a chance negotiation to make direct connection and use proxy when one of them behind NAT/Proxy?

RECV:
<iq xmlns="jabber:client" from="openfile2@fedoracore8/f7bc9e70" to="openfile1@fedoracore8/9d53a74a" type="set" id="agsXMPP_12"><si xmlns="http://jabber.org/protocol/si" profile="http://jabber.org/protocol/si/profile/file-transfer" id="a4d11fd4-98ed-421d-89c5-21653570ec70"><file xmlns="http://jabber.org/protocol/si/profile/file-transfer" size="736" name="setup_log.txt"><range /></file><feature xmlns="http://jabber.org/protocol/feature-neg"><x xmlns="jabber:x:data" type="form"><field type="list-single" var="stream-method"><option><value>http://jabber.org/protocol/bytestreams</value></option></field></x></feature></si></iq>

SEND:
<iq id="agsXMPP_12" to="openfile2@fedoracore8/f7bc9e70" type="result"><si xmlns="http://jabber.org/protocol/si" id="a4d11fd4-98ed-421d-89c5-21653570ec70"><feature xmlns="http://jabber.org/protocol/feature-neg"><x xmlns="jabber:x:data" type="submit"><field var="stream-method"><value>http://jabber.org/protocol/bytestreams</value></field></x></feature></si></iq>

RECV:
<iq xmlns="jabber:client" from="openfile2@fedoracore8/f7bc9e70" to="openfile1@fedoracore8/9d53a74a" type="set" id="agsXMPP_13"><query xmlns="http://jabber.org/protocol/bytestreams" sid="a4d11fd4-98ed-421d-89c5-21653570ec70"><streamhost port="7777" jid="proxy.ag-software.de" host="proxy.ag-software.de" /></query></iq>

I appreciate all your advice.

Best,

Le
Avatar
Alex #2
Member since Feb 2003 · 4245 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
SOCKS5 file transfer is included.
If you transfer fles between 2 Natted clients you need a file transfer proxy. According to your log file you use proxy.ag-software.de. This proxy is not public and available. You have to use another proxy server, or install your own proxy.

Alex
Alexander Gnauck
AG-Software
Avatar
javanesevn #3
Member since Apr 2008 · 74 posts · Location: Japan
Group memberships: Members
Show profile · Link to this post
Now I have not built SOCKS server yet. But I try to test with Openfire server and it support SOCKS5 also.

Here is log I get:

SEND: <iq id="agsXMPP_10" to="openfile2@fedoracore8/MiniClient" type="set"><si xmlns="http://jabber.org/protocol/si" profile="http://jabber.org/protocol/si/profile/file-transfer" id="4a84f731-6767-445a-b982-f5989ce7f13c"><file xmlns="http://jabber.org/protocol/si/profile/file-transfer" name="software_design.pdf" size="70134"><desc>Pdf file</desc><range /></file><feature xmlns="http://jabber.org/protocol/feature-neg"><x xmlns="jabber:x:data" type="form"><field type="list-single" var="stream-method"><option><value>http://jabber.org/protocol/bytestreams</value></option></field></x></feature></si></iq>

RECV: <iq id="agsXMPP_10" to="openfile1@fedoracore8/MiniClient" type="result" from="openfile2@fedoracore8/MiniClient"><si xmlns="http://jabber.org/protocol/si" id="4a84f731-6767-445a-b982-f5989ce7f13c"><feature xmlns="http://jabber.org/protocol/feature-neg"><x xmlns="jabber:x:data" type="submit"><field var="stream-method"><value>http://jabber.org/protocol/bytestreams</value></field></x></feature></si></iq>

SEND: <iq id="agsXMPP_11" to="openfile2@fedoracore8/MiniClient" type="set"><query xmlns="http://jabber.org/protocol/bytestreams" sid="4a84f731-6767-445a-b982-f5989ce7f13c"><streamhost jid="fedoracore8" host="fedoracore8" port="7777" /></query></iq>

RECV: <iq type="result" to="openfile1@fedoracore8/MiniClient" id="agsXMPP_11" from="openfile2@fedoracore8/MiniClient"><query xmlns="http://jabber.org/protocol/bytestreams"><streamhost-used jid="fedoracore8"/></query></iq>

SEND: <iq id="agsXMPP_12" to="fedoracore8" type="set"><query xmlns="http://jabber.org/protocol/bytestreams" sid="4a84f731-6767-445a-b982-f5989ce7f13c"><activate>openfile2@fedoracore8/MiniClient</activate></query></iq>

RECV: <iq type="error" id="agsXMPP_12" from="fedoracore8" to="openfile1@fedoracore8/MiniClient"><query xmlns="http://jabber.org/protocol/bytestreams" sid="4a84f731-6767-445a-b982-f5989ce7f13c"><activate>openfile2@fedoracore8/MiniClient</activate></query><error code="501" type="cancel"><feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></iq>

In Receiver, file name is created under [Received Files] folder but 0 KB. In agsXMPP has implemented what kinds of XEPs related in file transfer?


In case seperate proxy server, could you recommend me some proxy servers can build in Linux OS?

Best regards,

Le
Avatar
Alex #4
Member since Feb 2003 · 4245 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
yes, openfire has a build in SOCKS5 proxy server. According to your log I think you have the wrong jid for your proxy.
I see that you send packets to fedoracore8 which should be sent to the proxy component and not to the server directly.
The proxy component is always on a subdomain, eg. proxy.fedoracore8.
Look at your openfire config for the correct Jid.

Alex
Alexander Gnauck
AG-Software
Avatar
javanesevn #5
Member since Apr 2008 · 74 posts · Location: Japan
Group memberships: Members
Show profile · Link to this post
Thank you very much Alex.

Best
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP SDK Support RSS