From 75039427cfaa0ab60728bdbefc287e87f744a9a8 Mon Sep 17 00:00:00 2001 From: SmallChi <564952747@qq.com> Date: Wed, 26 Dec 2018 23:28:37 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=A2=9E=E5=8A=A0Udp=E4=BC=9A=E8=AF=9D=202.?= =?UTF-8?q?=E5=8E=BB=E9=99=A4=E6=97=A0=E7=94=A8=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../JT808.DotNetty.Configurations.csproj | 7 --- .../JT808ClientConfiguration.cs | 32 ----------- .../JT808Configuration.cs | 54 ------------------- .../JT808Constants.cs | 13 ----- src/JT808.DotNetty.Http/Class1.cs | 8 --- .../JT808.DotNetty.Http.csproj | 7 --- 6 files changed, 121 deletions(-) delete mode 100644 src/JT808.DotNetty.Configurations/JT808.DotNetty.Configurations.csproj delete mode 100644 src/JT808.DotNetty.Configurations/JT808ClientConfiguration.cs delete mode 100644 src/JT808.DotNetty.Configurations/JT808Configuration.cs delete mode 100644 src/JT808.DotNetty.Configurations/JT808Constants.cs delete mode 100644 src/JT808.DotNetty.Http/Class1.cs delete mode 100644 src/JT808.DotNetty.Http/JT808.DotNetty.Http.csproj diff --git a/src/JT808.DotNetty.Configurations/JT808.DotNetty.Configurations.csproj b/src/JT808.DotNetty.Configurations/JT808.DotNetty.Configurations.csproj deleted file mode 100644 index 9f5c4f4..0000000 --- a/src/JT808.DotNetty.Configurations/JT808.DotNetty.Configurations.csproj +++ /dev/null @@ -1,7 +0,0 @@ - - - - netstandard2.0 - - - diff --git a/src/JT808.DotNetty.Configurations/JT808ClientConfiguration.cs b/src/JT808.DotNetty.Configurations/JT808ClientConfiguration.cs deleted file mode 100644 index e2243d2..0000000 --- a/src/JT808.DotNetty.Configurations/JT808ClientConfiguration.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System.Net; - -namespace JT808.DotNetty.Configurations -{ - public class JT808ClientConfiguration - { - public string Host { get; set; } - - public int Port { get; set; } - - private EndPoint endPoint; - - public EndPoint EndPoint - { - get - { - if (endPoint == null) - { - if (IPAddress.TryParse(Host, out IPAddress ip)) - { - endPoint = new IPEndPoint(ip, Port); - } - else - { - endPoint = new DnsEndPoint(Host, Port); - } - } - return endPoint; - } - } - } -} diff --git a/src/JT808.DotNetty.Configurations/JT808Configuration.cs b/src/JT808.DotNetty.Configurations/JT808Configuration.cs deleted file mode 100644 index 3565e4b..0000000 --- a/src/JT808.DotNetty.Configurations/JT808Configuration.cs +++ /dev/null @@ -1,54 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace JT808.DotNetty.Configurations -{ - public class JT808Configuration - { - public int Port { get; set; } = 808; - - public int UDPPort { get; set; } = 809; - - public int QuietPeriodSeconds { get; set; } = 1; - - public TimeSpan QuietPeriodTimeSpan => TimeSpan.FromSeconds(QuietPeriodSeconds); - - public int ShutdownTimeoutSeconds { get; set; } = 3; - - public TimeSpan ShutdownTimeoutTimeSpan => TimeSpan.FromSeconds(ShutdownTimeoutSeconds); - - public int SoBacklog { get; set; } = 8192; - - public int EventLoopCount { get; set; } = Environment.ProcessorCount; - - public int ReaderIdleTimeSeconds { get; set; } = 3600; - - public int WriterIdleTimeSeconds { get; set; } = 3600; - - public int AllIdleTimeSeconds { get; set; } = 3600; - - /// - /// WebApi服务 - /// 默认828端口 - /// - public int WebApiPort { get; set; } = 828; - - /// - /// 源包分发器配置 - /// - public List SourcePackageDispatcherClientConfigurations { get; set; } - - /// - /// 转发远程地址 (可选项)知道转发的地址有利于提升性能 - /// 按照808的消息,有些请求必须要应答,但是转发可以不需要有应答可以节省部分资源包括: - // 1.消息的序列化 - // 2.消息的下发 - // 都有一定的性能损耗,那么不需要判断写超时 IdleState.WriterIdle - // 就跟神兽貔貅一样。。。 - /// - public List ForwardingRemoteAddress { get; set; } - - public string RedisHost { get; set; } - } -} diff --git a/src/JT808.DotNetty.Configurations/JT808Constants.cs b/src/JT808.DotNetty.Configurations/JT808Constants.cs deleted file mode 100644 index 9d92e11..0000000 --- a/src/JT808.DotNetty.Configurations/JT808Constants.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace JT808.DotNetty.Configurations -{ - public static class JT808Constants - { - public const string SessionOnline= "JT808SessionOnline"; - - public const string SessionOffline = "JT808SessionOffline"; - } -} diff --git a/src/JT808.DotNetty.Http/Class1.cs b/src/JT808.DotNetty.Http/Class1.cs deleted file mode 100644 index 667f6a5..0000000 --- a/src/JT808.DotNetty.Http/Class1.cs +++ /dev/null @@ -1,8 +0,0 @@ -using System; - -namespace JT808.DotNetty.Http -{ - public class Class1 - { - } -} diff --git a/src/JT808.DotNetty.Http/JT808.DotNetty.Http.csproj b/src/JT808.DotNetty.Http/JT808.DotNetty.Http.csproj deleted file mode 100644 index 9f5c4f4..0000000 --- a/src/JT808.DotNetty.Http/JT808.DotNetty.Http.csproj +++ /dev/null @@ -1,7 +0,0 @@ - - - - netstandard2.0 - - -