1 Replies - 2689 Views - Last Post: 29 November 2010 - 08:04 AM Rate Topic: -----

#1 Guest_Stuart*


Reputation:

How do I send multiple files over tcp at the same time in c sharp?

Posted 29 November 2010 - 07:55 AM

I have a tcp client - server implementation running in the same program, on different background worker threads. There will be instances of this program on multiple computers so they can send and receive files between each other. I can send files sequentially between computers using network stream, but how would I send multiple files at the same time from computer A to B.

Sending multiple files over one connection ( socket ) is fine, but having multiple network streams sending data to a client, the client doesn't know which chunk of data is apart of which file ?

Thanks for your time and effort.

Is This A Good Question/Topic? 0

Replies To: How do I send multiple files over tcp at the same time in c sharp?

#2 Guest_Stuart*


Reputation:

Re: How do I send multiple files over tcp at the same time in c sharp?

Posted 29 November 2010 - 08:04 AM

*Edit*

Would it be possible for the client to connect twice to the server (on a difference port, as a 'random'/ unused port is assigned to the connection) and then each connection have its own stream, allowing 2 files to be sent at the same time?
Was This Post Helpful? 0

Page 1 of 1