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,
 
Back
Top