Is there a C# equivalent to the Java Selector class?
Is there a C# equivalent to the Java Selector class? In the .Net framework or opensource.
开发者_如何学运维This is the java.nio.channels.Selector class.
Thanks
Not really... the closest match would be an extension method. http://msdn.microsoft.com/en-us/library/bb383977.aspx
Well, I guess there's Socket.Select or WaitHandle.WaitAny, but the NIO architecture of Java is totally different to the asynchronous model of I/O in .NET so there's really no direct correlation between the two.
精彩评论