11

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.

Dagang
  • 24,586
  • 26
  • 88
  • 133

1 Answers1

9

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
  • 155,851
  • 29
  • 291
  • 343