Nickx27 / libjingle

Automatically exported from code.google.com/p/libjingle
0 stars 0 forks source link

[libjingle 0.4.0] PCP sample cannot transfer file #69

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce this problem:
>1.Build PCP.exe and run on two different notebooks
>2.Run receiver by "pcp.exe -d" and input account_1 and password
>3.Run tranferrer by "pcp.exe -d filename account_1" and login with account_2 
and password
>4.After account_2 is logged in google server, it will show start to Offering 
G:\WLBARGMO.txt (0.0 Bytes) to account_1

File transfer completed.
Logged out.
>5.But receiver will show
Receiving 1 files <0.0 Bytes> from account_2
File transfer started.

File transfer failed.
Logged out.

How to make PCP sample to transfer files correctly ?

Note:
If I login to a local XMPP server (Openfire + windows server 2008),
PCP sample will show correct file size, but still cannot share file.

OS: Windows 7 X64
Libjingle 0.4.0

Original issue reported on code.google.com by willy6...@gmail.com on 11 Oct 2010 at 3:45

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Finally, I can transfer files by pcp example via Google server.
But I still can not transfer file by pcp example via my own openfire server.

To do file transfer via google server, there will be a relay server:
<stun>
         <server host="stun.l.google.com" udp="19302"/>
         <server host="stun4.l.google.com" udp="19302"/>
         <server host="stun3.l.google.com" udp="19302"/>
         <server host="stun2.l.google.com" udp="19302"/>
         <server host="stun1.l.google.com" udp="19302"/>
       </stun>
       <relay>
         <token>
           CAESHgoVd2lsbHk2OTA5MjJAZ21haWwuY29tEN/Jmo66JRoQb+mXcgQmAwF++qbk8Mf07
A==
         </token>
         <server host="relay.google.com" udp="19295" tcp="19294" tcpssl="443"/>
       </relay>

But with openfire server, there are only stun servers:
<query xmlns="google:jingleinfo">
       <stun>
         <server host="stun.xten.net" udp="3478"/>
         <server host="jivesoftware.com" udp="3478"/>
         <server host="igniterealtime.org" udp="3478"/>
         <server host="stun.fwdnet.net" udp="3478"/>
       </stun>
       <publicip ip="xx.xx.xxx.xxx"/>
     </query>

Can anyone give me some suggestions about how to setup a relay server for my 
own openfire server ? 
Thanks.

Original comment by willy6...@gmail.com on 16 Oct 2010 at 8:07

GoogleCodeExporter commented 9 years ago
Libjingle 0.4 is a very old version. The file sharing example is not available 
in 0.5.1. This is one of the work items that we'll be working on in priority 
order.

Original comment by jun...@google.com on 3 Dec 2010 at 1:34