I've done an small asynchronous
tcp server/client in C#...
... And I've been just thinking :
C# API implements
select
andepoll
, a classic but easy way to do async. Why does Microsoft introduce theBeginConnect
/BeginSend
family, which -in my opinion- have a more complicated design (and adds lines of code too).So, using the BeginXXX() "trend", I noticed that the
System.Threading
import is required (for the events). Does it mean that threads are involved too ?