An open API service indexing awesome lists of open source software.

https://github.com/microsurging/dotnetty


https://github.com/microsurging/dotnetty

Last synced: 9 months ago
JSON representation

Awesome Lists containing this project

README

          

# DotNetty Project
[![Available on NuGet https://www.nuget.org/packages?q=NioDotNetty](https://img.shields.io/nuget/v/NioDotNetty.Common.svg?style=flat-square)](https://www.nuget.org/packages?q=NioDotNetty)

[DotNetty](https://github.com/Azure/DotNetty) is a port of [Netty](https://github.com/netty/netty), This project is derived from the SpanNetty project and continues to be improved, asynchronous event-driven network application framework for rapid development of maintainable high performance protocol servers & clients.

## Use
Default TaskScheduler
```
_bossEventExecutor = new MultithreadEventLoopGroup(1);
_workEventExecutor = new MultithreadEventLoopGroup();

//Libuv
var dispatcher = new DispatcherEventLoopGroup();
_bossEventExecutor = dispatcher;
_workEventExecutor = new WorkerEventLoopGroup(dispatcher);
}
```

Alone TaskScheduler
```
_bossEventExecutor = new MultithreadEventLoopGroup(1,TaskSchedulerType.Alone);
_workEventExecutor = new MultithreadEventLoopGroup(TaskSchedulerType.Alone);

//Libuv
var dispatcher = new DispatcherEventLoopGroup(TaskSchedulerType.Alone);
_bossEventExecutor = dispatcher;
_workEventExecutor = new WorkerEventLoopGroup(dispatcher,TaskSchedulerType.Alone);
}
```

The Alone TaskScheduler is used to handle time-consuming task scheduling and requires manual configuration