[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

Forum statistics

Threads
474,138
Messages
2,570,804
Members
47,349
Latest member
jojonoy597

Latest Threads

Top