开发者

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

开发者 https://www.devze.com 2023-02-09 17:55 出处:网络
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?

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

精彩评论

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