开发者

Is there something like boost::asio for .NET (Mono)?

I need the functionality of boost::asio::io_service in a .NET (C#) program. Is there a lib开发者_高级运维rary (Microsoft or 3rd-party) that has a similar functionality?

What I need is a class/mechanism like boost::asio::io_service that lets me asynchronously invoke handlers. With io_service I can "post" handlers from outside the thread in which the handlers are actually executed.


I'm not familiar with boost:asio, but you get asynchronous I/O in .NET via the BeginXXX/EndXXX pattern. For example, see Stream.BeginRead and Stream.EndRead.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜