Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C# (http://www.programmingforums.org/forum16.html)
-   -   file transfer (http://www.programmingforums.org/showthread.php?t=13799)

programmingnoob Aug 18th, 2007 4:58 AM

file transfer
 
so in a client/server setup, I want to have a direction connection between two clients when it comes to file transfer.
It means the file does not have to go through the server, while text messages do
how do I accomplish this?
The links I went to suggest Client to Server transfer only...
or maybe peer to peer....
but any ideas to accomplish what I want to do?


Btw I am using sockets

bigguy Aug 18th, 2007 5:24 AM

Why not create a socket, just for file transfers, the sender's socket gets the receivers IP, and direct connects to that IP.

programmingnoob Aug 18th, 2007 5:36 AM

Quote:

Originally Posted by bigguy (Post 132413)
Why not create a socket, just for file transfers, the sender's socket gets the receivers IP, and direct connects to that IP.

why a separate socket?

bigguy Aug 18th, 2007 6:11 AM

If they want to send messages while still transfering the file, you said you wanted to have all the text messages still go through the server. If they want to be able to send messages while still transferring the file, if you use the same socket, it would interrupt the transfer. The same socket can only hanlde one connection, I believe, I'm not sure because I suck at network programming.


All times are GMT -5. The time now is 3:00 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC