![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
Join Date: Feb 2006
Posts: 154
Rep Power: 3
![]() |
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 |
|
|
|
|
|
#2 |
|
Professional Programmer
|
Why not create a socket, just for file transfers, the sender's socket gets the receivers IP, and direct connects to that IP.
__________________
Forgiveness is the fragrance that the violet sheds on the heal that has crushed it. - Mark Twain Destruction leads to a very rough road, but it also breeds creation. |
|
|
|
|
|
#3 |
|
Hobbyist Programmer
Join Date: Feb 2006
Posts: 154
Rep Power: 3
![]() |
|
|
|
|
|
|
#4 |
|
Professional Programmer
|
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.
__________________
Forgiveness is the fragrance that the violet sheds on the heal that has crushed it. - Mark Twain Destruction leads to a very rough road, but it also breeds creation. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problem processing file into a char array | csrocker101 | C++ | 1 | May 8th, 2007 11:50 PM |
| Winsock HTTP File Transfer | kruptof | Visual Basic | 1 | Jun 19th, 2006 4:47 AM |
| OnlineTextEditor.Com! | Sane | Show Off Your Open Source Projects | 43 | Jun 16th, 2006 8:55 AM |
| After execution - Error cannot locate /Skin File? | wchar | Visual Basic | 1 | Mar 5th, 2005 9:04 PM |
| airport Log program using 3D linked List : problem reading from file | gemini_shooter | C++ | 0 | Mar 2nd, 2005 4:12 PM |