# GatewayBranch
## [中文文档](README.ZH-CN.MD)
GatewayBranch is a lightweight gateway forwarding tool developed based on DotNet
![workflow](./imgs/workflow.png)
# How to use
import package
```c#
using GatewayBranch.Core;
```
add service
```c#
services.AddGatewayBranch(hostContext.Configuration);
```
config appsettings.json
```json
"Gateway": {
"TcpPort": [2012,2013], // listener ports list
"BrabchServer": [
{
"Ip": "127.0.0.1", // branch server ip or domain
"Port": 808, // branch server port
"NeedReply": true // if `true` branch port downstream data,else do nothing
},
{
"Ip": "127.0.0.1",
"Port": 809,
"NeedReply": true
}
]
}
```
# Run in docker
the docker image [yedajiang44/gatewaybranch](https://hub.docker.com/r/yedajiang44/gatewaybranch)
- download `docker-compose.yml`
- exec `docker-compose up -d`
## note
> If you need to map configuration file, you need to create the corresponding file
- `appsettings.json` content see [appsettings.json](./src/GatewayBranch.Application/appsettings.json) , see [GatewayConfiguration](./src/GatewayBranch.Core/Server/GatewayConfiguration.cs) for specific gateway configuration items
- ~~`nlog.config` content see [nlog.config](./src/GatewayBranch.Application/nlog.config)~~
# Roadmap
- add udp
- add session mananger webapi
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
今天给大家介绍一个开源的轻量级跨平台实时HTML+C#.NET Web应用程序开发框架——DotNetify,允许你在C#.NET后端上创建具有React、React Native、Vue或Blazor 前端的实时、响应式、跨平台应用程序。 它的主要特点是: 简单且轻量 响应式后端MVVM 内置实时解决方案 跨平台 强大的基础设施 简单轻量 不再需要编写冗长的RESTAPI,也不需要使用复杂的Javascript框架来实现您所追求的复杂的、高交互性的单页应用程序。学习起来还是很快,而且代码量很少,不管是前端还是后端。
资源推荐
资源详情
资源评论
收起资源包目录
一个基于 DotNetty 的轻量级跨平台TCP网关的Socket转发工具,支持docker容器化部署.rar (39个子文件)
一个基于 DotNetty 的轻量级跨平台TCP网关的Socket转发工具,支持docker容器化部署
新建文本文档.txt 19B
GatewayBranch-main
.editorconfig 115B
README.ZH-CN.MD 1KB
.github
workflows
dotnet-core.yml 497B
.gitattributes 2KB
src
GatewayBranch.Extensions
HexExtensions.cs 1KB
IConfigurationExtensions.cs 2KB
GatewayBranch.Extensions.csproj 267B
GatewayBranch.Core
Handler
TcpClientHandler.cs 4KB
BranchTcpServerHandler.cs 4KB
GatewayBranch.Core.csproj 882B
Client
TcpClientFactory.cs 1KB
TcpClientManager.cs 1KB
TcpClientSessionManager.cs 2KB
TcpClient.cs 4KB
Session.cs 679B
Codec
TcpMetadataEncoder.cs 395B
TcpMetadataDecoder.cs 513B
DependencyInjectionExtensions.cs 1KB
Server
TcpServerHost.cs 4KB
ServerSessionManager.cs 2KB
Session.cs 664B
GatewayConfiguration.cs 4KB
GatewayBranch.Application
appsettings.Development.json 1KB
Properties
launchSettings.json 180B
GatewayBranch.Application.csproj 905B
Program.cs 486B
appsettings.json 925B
GatewayBranch.Test
GatewayBranch.Test.csproj 780B
HexTest.cs 1KB
TcpServerTest.cs 1KB
LICENSE 1KB
GatewayBranch.sln 3KB
docker-compose.yml 2KB
Dockerfile 150B
.gitignore 6KB
README.MD 1KB
imgs
workflow.png 45KB
build.sh 1KB
共 39 条
- 1
资源评论
野生的狒狒
- 粉丝: 1519
- 资源: 1582
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功