https://github.com/microsurging/dotnetty
https://github.com/microsurging/dotnetty
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/microsurging/dotnetty
- Owner: microsurging
- Created: 2025-06-20T03:32:31.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-08-09T00:56:10.000Z (11 months ago)
- Last Synced: 2025-09-28T11:46:00.472Z (9 months ago)
- Language: C#
- Size: 1.47 MB
- Stars: 34
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DotNetty Project
[](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