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 - - -