Subject: Problem in File Transfering
hi, i am implementing the file transfer mecahnism on following the codes from MiniClient sample. But i am getting problems.
1) when i transfer file the other user can get the message to accept the invitation. But after he clicked acept button. file is not transfering.
2) if I want to use sock5 method, how to do that.
i am sending my debug code.
Sender:
SEND: <iq xmlns="jabber:client" id="agsXMPP_16" to="sreedevi@xmpp1.kochi.globees.com/MiniClient" type="set"><si xmlns="http://jabber.org/protocol/si" profile="http://jabber.org/protocol/si/profile/file-transfer" id="5a758e6d-3d7b-4f73-88a2-6797c9e15265"><file xmlns="http://jabber.org/protocol/si/profile/file-transfer" name="jeeva.txt" size="926"><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 xmlns="jabber:client" from="sreedevi@xmpp1.kochi.globees.com/GIM" to="shahulhameed@xmpp1.kochi.globees.com/GIM" type="result" id="agsXMPP_16"><si xmlns="http://jabber.org/protocol/si" id="5a758e6d-3d7b-4f73-88a2-6797c9e15265"><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 xmlns="jabber:client" id="agsXMPP_17" to="sreedevi@xmpp1.kochi.globees.com/MiniClient" type="set"><query xmlns="http://jabber.org/protocol/bytestreams" sid="5a758e6d-3d7b-4f73-88a2-6797c9e15265"><streamhost jid="shahulhameed@xmpp1.kochi.globees.com/GIM" host="192.168.0.18" port="8080" /></query></iq>
RECV: <iq xmlns="jabber:client" from="sreedevi@xmpp1.kochi.globees.com/GIM" id="agsXMPP_30" to="shahulhameed@xmpp1.kochi.globees.com/GIM" type="set"><query xmlns="http://jabber.org/protocol/bytestreams" sid="5a758e6d-3d7b-4f73-88a2-6797c9e15265"><streamhost host="192.168.0.18" jid="sreedevi@xmpp1.kochi.globees.com/GIM" port="8080" /></query></iq>
Receiver
RECV: <iq xmlns="jabber:client" from="sree@localhost" id="agsXMPP_24" to="sreedevi@xmpp1.kochi.globees.com/GIM" type="error"><query xmlns="jabber:iq:last" /><error code="404" type="cancel"><remote-server-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /></error></iq>
RECV: <iq xmlns="jabber:client" from="sarose@srv.globees.com" id="agsXMPP_15" to="sreedevi@xmpp1.kochi.globees.com/GIM" type="error"><query xmlns="jabber:iq:last" /><error code="404" type="cancel"><remote-server-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /></error></iq>
RECV: <iq xmlns="jabber:client" from="shahulhameed@xmpp1.kochi.globees.com/GIM" id="agsXMPP_16" to="sreedevi@xmpp1.kochi.globees.com/MiniClient" type="set"><si xmlns="http://jabber.org/protocol/si" id="5a758e6d-3d7b-4f73-88a2-6797c9e15265" profile="http://jabber.org/protocol/si/profile/file-transfer"><file xmlns="http://jabber.org/protocol/si/profile/file-transfer" size="926" name="jeeva.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 xmlns="jabber:client" from="sreedevi@xmpp1.kochi.globees.com/GIM" id="agsXMPP_16" to="shahulhameed@xmpp1.kochi.globees.com/GIM" type="result"><si xmlns="http://jabber.org/protocol/si" id="5a758e6d-3d7b-4f73-88a2-6797c9e15265"><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="shahulhameed@xmpp1.kochi.globees.com/GIM" id="agsXMPP_17" to="sreedevi@xmpp1.kochi.globees.com/MiniClient" type="set"><query xmlns="http://jabber.org/protocol/bytestreams" sid="5a758e6d-3d7b-4f73-88a2-6797c9e15265"><streamhost host="192.168.0.18" jid="shahulhameed@xmpp1.kochi.globees.com/GIM" port="8080" /></query></iq>
SEND: <iq xmlns="jabber:client" id="agsXMPP_30" to="shahulhameed@xmpp1.kochi.globees.com/GIM" type="set"><query xmlns="http://jabber.org/protocol/bytestreams" sid="5a758e6d-3d7b-4f73-88a2-6797c9e15265"><streamhost jid="sreedevi@xmpp1.kochi.globees.com/GIM" host="192.168.0.18" port="8080" /></query></iq>
1) when i transfer file the other user can get the message to accept the invitation. But after he clicked acept button. file is not transfering.
2) if I want to use sock5 method, how to do that.
i am sending my debug code.
Sender:
SEND: <iq xmlns="jabber:client" id="agsXMPP_16" to="sreedevi@xmpp1.kochi.globees.com/MiniClient" type="set"><si xmlns="http://jabber.org/protocol/si" profile="http://jabber.org/protocol/si/profile/file-transfer" id="5a758e6d-3d7b-4f73-88a2-6797c9e15265"><file xmlns="http://jabber.org/protocol/si/profile/file-transfer" name="jeeva.txt" size="926"><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 xmlns="jabber:client" from="sreedevi@xmpp1.kochi.globees.com/GIM" to="shahulhameed@xmpp1.kochi.globees.com/GIM" type="result" id="agsXMPP_16"><si xmlns="http://jabber.org/protocol/si" id="5a758e6d-3d7b-4f73-88a2-6797c9e15265"><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 xmlns="jabber:client" id="agsXMPP_17" to="sreedevi@xmpp1.kochi.globees.com/MiniClient" type="set"><query xmlns="http://jabber.org/protocol/bytestreams" sid="5a758e6d-3d7b-4f73-88a2-6797c9e15265"><streamhost jid="shahulhameed@xmpp1.kochi.globees.com/GIM" host="192.168.0.18" port="8080" /></query></iq>
RECV: <iq xmlns="jabber:client" from="sreedevi@xmpp1.kochi.globees.com/GIM" id="agsXMPP_30" to="shahulhameed@xmpp1.kochi.globees.com/GIM" type="set"><query xmlns="http://jabber.org/protocol/bytestreams" sid="5a758e6d-3d7b-4f73-88a2-6797c9e15265"><streamhost host="192.168.0.18" jid="sreedevi@xmpp1.kochi.globees.com/GIM" port="8080" /></query></iq>
Receiver
RECV: <iq xmlns="jabber:client" from="sree@localhost" id="agsXMPP_24" to="sreedevi@xmpp1.kochi.globees.com/GIM" type="error"><query xmlns="jabber:iq:last" /><error code="404" type="cancel"><remote-server-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /></error></iq>
RECV: <iq xmlns="jabber:client" from="sarose@srv.globees.com" id="agsXMPP_15" to="sreedevi@xmpp1.kochi.globees.com/GIM" type="error"><query xmlns="jabber:iq:last" /><error code="404" type="cancel"><remote-server-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /></error></iq>
RECV: <iq xmlns="jabber:client" from="shahulhameed@xmpp1.kochi.globees.com/GIM" id="agsXMPP_16" to="sreedevi@xmpp1.kochi.globees.com/MiniClient" type="set"><si xmlns="http://jabber.org/protocol/si" id="5a758e6d-3d7b-4f73-88a2-6797c9e15265" profile="http://jabber.org/protocol/si/profile/file-transfer"><file xmlns="http://jabber.org/protocol/si/profile/file-transfer" size="926" name="jeeva.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 xmlns="jabber:client" from="sreedevi@xmpp1.kochi.globees.com/GIM" id="agsXMPP_16" to="shahulhameed@xmpp1.kochi.globees.com/GIM" type="result"><si xmlns="http://jabber.org/protocol/si" id="5a758e6d-3d7b-4f73-88a2-6797c9e15265"><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="shahulhameed@xmpp1.kochi.globees.com/GIM" id="agsXMPP_17" to="sreedevi@xmpp1.kochi.globees.com/MiniClient" type="set"><query xmlns="http://jabber.org/protocol/bytestreams" sid="5a758e6d-3d7b-4f73-88a2-6797c9e15265"><streamhost host="192.168.0.18" jid="shahulhameed@xmpp1.kochi.globees.com/GIM" port="8080" /></query></iq>
SEND: <iq xmlns="jabber:client" id="agsXMPP_30" to="shahulhameed@xmpp1.kochi.globees.com/GIM" type="set"><query xmlns="http://jabber.org/protocol/bytestreams" sid="5a758e6d-3d7b-4f73-88a2-6797c9e15265"><streamhost jid="sreedevi@xmpp1.kochi.globees.com/GIM" host="192.168.0.18" port="8080" /></query></iq>