C# AsyncIO

本文记录了C#中使用AsyncIO库实现高性能socket服务器的过程。AsyncIO基于Windows IO Completion Ports,提供对线程的完全控制,允许开发者创建高性能服务器。在Mono环境下,虽退化为Mono实现,但依然提供类似完成端口的API。通过NuGet可以安装AsyncIO,并且使用方式与.NET Socket类似,通过调用GetQueuedCompletionStatus获取操作完成的事件。
摘要由CSDN通过智能技术生成

这一天看NETMQ发现里面使用的是IOCP是思想,以前自己老是想找一个类是dll,这次终于找到了,特此记录一下.

git:    https://github.com/somdoron/AsyncIO

demo:

AsyncIO

AsyncIO is portable high performance sockets library for .Net. The library is based on Windows IO Completion ports.

.Net Socket library doesn't give control over the threads and doesn't expose the IO completion port API, AsyncIO give full control over the threads and allow the developer to create high performance servers.

On Mono the library fall down to mono implementation but still give completion port like API.

Installation

You can install AsyncIO from 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值