diff --git a/src/JT808.DotNetty.Abstractions/JT808Constants.cs b/src/JT808.DotNetty.Abstractions/JT808Constants.cs
index 4f591d5..ea9a959 100644
--- a/src/JT808.DotNetty.Abstractions/JT808Constants.cs
+++ b/src/JT808.DotNetty.Abstractions/JT808Constants.cs
@@ -5,5 +5,59 @@
public const string SessionOnline= "JT808SessionOnline";
public const string SessionOffline = "JT808SessionOffline";
+
+ public static class JT808WebApiRouteTable
+ {
+ public const string RouteTablePrefix = "/jt808api";
+
+ public const string SessionPrefix = "Session";
+
+ public const string TransmitPrefix = "Transmit";
+ ///
+ /// 添加转发过滤地址
+ ///
+ public static string TransmitAdd = $"{RouteTablePrefix}/{TransmitPrefix}/Add";
+ ///
+ /// 删除转发过滤地址(不能删除在网关服务器配置文件配的地址)
+ ///
+ public static string TransmitRemove = $"{RouteTablePrefix}/{TransmitPrefix}/Remove";
+ ///
+ /// 获取转发过滤地址信息集合
+ ///
+ public static string TransmitGetAll = $"{RouteTablePrefix}/{TransmitPrefix}/GetAll";
+ ///
+ /// 获取Tcp包计数器
+ ///
+ public static string GetTcpAtomicCounter = $"{RouteTablePrefix}/GetTcpAtomicCounter";
+ ///
+ /// 基于Tcp的会话服务集合
+ ///
+ public static string SessionTcpGetAll = $"{RouteTablePrefix}/{SessionPrefix}/Tcp/GetAll";
+ ///
+ /// 基于Tcp的会话服务-通过设备终端号移除对应会话
+ ///
+ public static string SessionTcpRemoveByTerminalPhoneNo = $"{RouteTablePrefix}/{SessionPrefix}/Tcp/RemoveByTerminalPhoneNo";
+ ///
+ /// 基于Tcp的统一下发信息
+ ///
+ public static string UnificationTcpSend = $"{RouteTablePrefix}/UnificationTcpSend";
+ ///
+ /// 获取Udp包计数器
+ ///
+ public static string GetUdpAtomicCounter = $"{RouteTablePrefix}/GetUdpAtomicCounter";
+ ///
+ /// 基于Udp的统一下发信息
+ ///
+ public static string UnificationUdpSend = $"{RouteTablePrefix}/UnificationUdpSend";
+ ///
+ /// 基于Udp的会话服务集合
+ ///
+ public static string SessionUdpGetAll = $"{RouteTablePrefix}/{SessionPrefix}/Udp/GetAll";
+ ///
+ /// 基于Udp的会话服务-通过设备终端号移除对应会话
+ ///
+ public static string SessionUdpRemoveByTerminalPhoneNo = $"{RouteTablePrefix}/{SessionPrefix}/Udp/RemoveByTerminalPhoneNo";
+
+ }
}
}
diff --git a/src/JT808.DotNetty.Core/Codecs/JT808TcpDecoder.cs b/src/JT808.DotNetty.Core/Codecs/JT808TcpDecoder.cs
new file mode 100644
index 0000000..3eb3006
--- /dev/null
+++ b/src/JT808.DotNetty.Core/Codecs/JT808TcpDecoder.cs
@@ -0,0 +1,20 @@
+using DotNetty.Buffers;
+using DotNetty.Codecs;
+using System.Collections.Generic;
+using JT808.Protocol;
+using DotNetty.Transport.Channels;
+
+namespace JT808.DotNetty.Core.Codecs
+{
+ public class JT808TcpDecoder : ByteToMessageDecoder
+ {
+ protected override void Decode(IChannelHandlerContext context, IByteBuffer input, List