From 30069648a176a9ef7aafa7b7c9b380c8ae39e5ab Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Sun, 26 Apr 2026 15:47:27 +0800 Subject: [PATCH] fix --- include/protocol.hrl | 20 -------------------- src/transport/service_channel.erl | 9 ++++++++- 2 files changed, 8 insertions(+), 21 deletions(-) delete mode 100644 include/protocol.hrl diff --git a/include/protocol.hrl b/include/protocol.hrl deleted file mode 100644 index c8f40b9..0000000 --- a/include/protocol.hrl +++ /dev/null @@ -1,20 +0,0 @@ -%%%------------------------------------------------------------------- -%%% @author anlicheng -%%% @copyright (C) 2025, -%%% @doc -%%% 传输层协议常量定义 -%%% @end -%%%------------------------------------------------------------------- --author("anlicheng"). - -%% 一级帧类型 -%% REQUEST: 需要响应的请求帧 -%% RESPONSE: 对 REQUEST 的响应帧 -%% CAST: 单向消息帧,不需要响应 --define(FRAME_REQUEST, 16#01). --define(FRAME_REPLY, 16#02). --define(FRAME_CAST, 16#03). - -%%%% 命令类型子分类, 不需要返回值 -%% 授权 --define(COMMAND_AUTH, 16#08). diff --git a/src/transport/service_channel.erl b/src/transport/service_channel.erl index 77a1041..a3c0af3 100644 --- a/src/transport/service_channel.erl +++ b/src/transport/service_channel.erl @@ -9,9 +9,16 @@ -module(service_channel). -author("licheng5"). -include("efka_tables.hrl"). --include("protocol.hrl"). -include("service_pb.hrl"). +%% 一级帧类型 +%% REQUEST: 需要响应的请求帧 +%% RESPONSE: 对 REQUEST 的响应帧 +%% CAST: 单向消息帧,不需要响应 +-define(FRAME_REQUEST, 16#01). +-define(FRAME_REPLY, 16#02). +-define(FRAME_CAST, 16#03). + %% API -export([init/2]). -export([websocket_init/1, websocket_handle/2, websocket_info/2, terminate/3]).