.NET C# Socket Concurrency issues
.net, c#, multithreading, sockets, thread-safety
Solution
It should be safe, yes. The Socket class is quoted by MSDN to be fully thread-safe.
I don't know if it's a good idea however. You might be making it difficult for yourself by using two threads. You probably want to look at `BeginSend` and `BeginReceive` for asynchronous versions, in which case you shouldn't need multiple threads.
Problem
An instance of System.Net.Sockets.Socket can be shared by 2 threads so one use the send() method and another it's receive() method ? Is it safe? Well, I need it to be not only thread-safe, but also that the send/receive methods be non-syncronized, so as to let each thread call them concurrently. Do I have another way of doing it ? Thanks for helping, I am experienced in java but having a hard time trying to make this one.