Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Page: previous  1  2  3  4  5  6  7  next
Avatar
Alex #31
Member since Feb 2003 · 4447 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
In reply to post ID 1037
hi,

i attached a SOCKS5 log and hope it will help you.

In this log you see the Hash f72a23ee01525181e1cf6b5235390902e189f0c2 build from:
  • sid: s5b_92a0d0f56112ac36
  • initiator: gnauck@myjabber.net/Psi
  • target: gnauck@jabber.org/Exodus

i removed some content of the file because it was a big PDF document. The file starts with the bytes "25 50" and ends with the bytes "46 0A".
When the file is complete the sender should close the socket. You also know the lenght of the file from the si request. If you count the received bytes and show the progress then you know when the file is complete, even when the sender doesnt close the socket.

Alex
The author has attached one file to this post:
socks5.html 2.8 kBytes
You have no permission to open this file.
Avatar
simons #32
User title: Simon shaw
Member since May 2006 · 30 posts
Group memberships: Members
Show profile · Link to this post
Hi Alex,

I also had to take a few days break from XMPP file transfer (to get on with the work I actully get paid for) but I believe that I now have an initial offereing (attached) that works under the following limitations:

1) Socks5 socket class is taken from a post I found on the internet so appart from being a little untidy it only supports connect (no listen).  I intend to clean up the code, make it asynchronous and to support listen.  This limitation forces the MiniClient to only work via Socks5 proxy which requires that both sdes connect to it.
2) The code has only been tested while connected to your server (amessage.info) using your proxy proxy.ag-software.de and with PSI as the applcation at the other side of the filetransfer.   I have not yet tested with multiple simultaneous file transfers.


Please remember that I am a c++ server side programer, this is my first attempt both at open source and anything beyond a few lines of c#.  I am very happy to receive any comments that you might have regarding style, implementation, coding conventions, design or feature requests, but please take my lack of experience into account.

Thanks for all your help,

Simon
The author has attached one file to this post:
FTChangedFiles.zip 48.1 kBytes
You have no permission to open this file.
This post was edited on 2006-06-21, 17:16 by Alex.
Avatar
_giove #33
Member since Jun 2006 · 4 posts
Group memberships: Members
Show profile · Link to this post
Subject: SOCKS5 File Transfer
Hi simons,
Hi Alex.

At first, sorry for my english..

I'm a beginner programmer and i haven't exprerience for agsXMPP libraries and protocols.
I start to study the documentations and i read the posts in this forum.
I will to implements a file transfer client such as you.

I have downloaded the attached code, i have included the new classes and i merged the changes files in agsXMPP solution, but apparently, some classes are missing or aren't included some modifies.
For example i can't find protocol\extensions\bytestreams\ByteStream.cs or protocol\extensions\si\SIIq.cs, and the Uri.cs file have missing declarations.

Can you help me?
Really sorry if my questions appear stupid. I need only to understand this technology for work with theme.

Thank you very much!
_matteo
Avatar
simons #34
User title: Simon shaw
Member since May 2006 · 30 posts
Group memberships: Members
Show profile · Link to this post
Hi Giove,

Thanks for the update and appologies for having missed out important files.  I have reposted the code with missing files added and some slight GUI improvements.  I think that you should check the baseline code that you are using from SVN as I don't think that I have touched either the URI.cs file or the SIIq.cs file.

Let me know how you get on.

Regards,

Simon
The author has attached one file to this post:
FTChangedFiles.zip 51.1 kBytes
You have no permission to open this file.
Avatar
Alex #35
Member since Feb 2003 · 4447 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
hi _giove,

you need the latest code from SVN to apply simons code.

Simon: i assume you worked with the SVN code, because i made lots of updates and extensions for tile tranfer there. Am i correct?

Alex
Avatar
simons #36
User title: Simon shaw
Member since May 2006 · 30 posts
Group memberships: Members
Show profile · Link to this post
Hi Alex,

I got the latest version of the code from SVN directly after you added support for bytestreams (Around 3 weeks ago).  Unfortunately I have never worked with SVN in the past, do you know if there is a way of integrating it into VS2005?

Regards,

Simon
Avatar
Alex #37
Member since Feb 2003 · 4447 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
there is a SVN plugin for visual studio. But i never used it myself.
I always use Rapid SVN or the SVN plugin from Eclipse. Also Tortoise SVN is very good.

Alex
Avatar
_giove #38
Member since Jun 2006 · 4 posts
Group memberships: Members
Show profile · Link to this post
Thanks you very much for your help.

I have dowloaded the latest code of agsXMPP libraries four day ago and after a fast learning i will start my work.
I hope to be able to help or collaborate with my code.

Best regards
_matteo
Avatar
Alex #39
Member since Feb 2003 · 4447 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello,

you get the latest code from the SVN repository, not as download from the webpage.

Alex
Avatar
simons #40
User title: Simon shaw
Member since May 2006 · 30 posts
Group memberships: Members
Show profile · Link to this post
Hi All,

Attached is the latest version of my filetransfer code with a slighlty imporved GUI and the JEP65Socket class (with a minor change) that Alex posted a few dats ago.  Alex also pointed out that it would be cool to add a reject button to the receive dialog which I intend to do in the next version.

All input gratefully received,

Regards,

Simon
The author has attached one file to this post:
FTChanged.zip 50 kBytes
You have no permission to open this file.
Avatar
_giove #41
Member since Jun 2006 · 4 posts
Group memberships: Members
Show profile · Link to this post
Hi simons.

Thanks very much for your precious and continuous support.
I have downloaded the latest version of your filetransfer code, but it seems that the class StreamHostUsedIQ.cs isn't included in the zip packet.

Sorry for my continuos questions..

Best regards.
_matteo
Avatar
simons #42
User title: Simon shaw
Member since May 2006 · 30 posts
Group memberships: Members
Show profile · Link to this post
My mistake.
Updated version attached with file StreamHostUsedIQ.cs included.

Apologies,

Simon
The author has attached one file to this post:
FTChanged.zip 50.7 kBytes
You have no permission to open this file.
Avatar
Alex #43
Member since Feb 2003 · 4447 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
hi Simon and the others,

i attached a newer version of the JEP0065 socket class which supports also listen now. I tried it with PSI and had no problem to transfer files directly (without proxy).
Keep in mind that this is a very early version and far from beeing complete and bug free.

Alex
The author has attached one file to this post:
JEP65Socket.cs 21.8 kBytes
You have no permission to open this file.
Avatar
simons #44
User title: Simon shaw
Member since May 2006 · 30 posts
Group memberships: Members
Show profile · Link to this post
Hi Alex,

Can you also post the code that you used to test the Listen function with?

Thanks,

Simon
Avatar
Alex #45
Member since Feb 2003 · 4447 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hi,

here is the test code which sends the streamhosts and opens a listening socket.

  1. private void SendStreamHosts()
  2. {    
  3.     ByteStreamIq bsIq = new ByteStreamIq();
  4.     bsIq.To = m_To;
  5.     bsIq.Type = IqType.set;
  6.  
  7.     bsIq.Query.Sid = m_Sid;
  8.     bsIq.Query.AddStreamHost(m_XmppCon.MyJID, "192.168.1.105", 1000);
  9.     bsIq.Query.AddStreamHost(new Jid("proxy.ag-software.de"), "proxy.ag-software.de", 7777);
  10.  
  11.     _socket = new SharpIM.JEP65Socket();
  12.     _socket.Initiator = m_XmppCon.MyJID;
  13.     _socket.Target = m_To;
  14.     _socket.SID = m_Sid;
  15.     _socket.OnConnect += new ObjectHandler(_socket_OnConnect);
  16.     _socket.OnDisconnect += new ObjectHandler(_socket_OnDisconnect);
  17.     _socket.Listen(1000);
  18.  
  19.  
  20.     m_XmppCon.IqGrabber.SendIq(bsIq, new IqCB(SendStreamHostsResult), null);
  21. }

Alex
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:
Page: previous  1  2  3  4  5  6  7  next
Forum: agsXMPP RSS