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.
精彩评论