views:

32

answers:

1

Since a socket is full duplexed, meaning you can send and recieve simultaneously. So, is the .NET Socket Send()/Receive() thread-safe? I need to Send() and Receive() in 2 threads.

+2  A: 

Quote from the MSDN docs about the Socket class (under Thread Safety, towards the end of the page):

Instances of this class are thread safe.

So I would suppose the answer is "yes".

Fredrik Mörk