Sockets in both directions?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Between the desktop and a WinCe device is it possible to use one socket and
send data in both directions from two different threads or is better to use
one socket for each direction?

Thanks.
 
That depends, I guess, on the nature of the conversation. It's certainly
possible to send and receive from different threads with a single socket...

Paul T.
 
Hi,

You can do it either way. Which is better depend of your app needs.
Think of FTP & HTTP , ftp use two sockets , one for commands and the other
for transfering the data
HTTP use the same socket for both the request/response.

cheers,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top