[Q] Legal for separate threads to do I/O on same socket?

B

Bill Kelly

Hi,

I'd like to have one thread doing, essentially, gets() from
a socket, and another thread doing puts() to the same socket.
(Or send/recv... doesn't have to be gets/puts if that makes
a difference...)

Is this legal? If not, would it be legal if the socket handle
were dup'd, giving one to the read thread and the other to the
write thread?


Thanks!

Bill
 

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

Members online

No members online now.

Forum statistics

Threads
474,337
Messages
2,571,776
Members
48,583
Latest member
MagaretTha

Latest Threads

Top