开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜