fix
This commit is contained in:
parent
0dfd282872
commit
30069648a1
@ -1,20 +0,0 @@
|
|||||||
%%%-------------------------------------------------------------------
|
|
||||||
%%% @author anlicheng
|
|
||||||
%%% @copyright (C) 2025, <COMPANY>
|
|
||||||
%%% @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).
|
|
||||||
@ -9,9 +9,16 @@
|
|||||||
-module(service_channel).
|
-module(service_channel).
|
||||||
-author("licheng5").
|
-author("licheng5").
|
||||||
-include("efka_tables.hrl").
|
-include("efka_tables.hrl").
|
||||||
-include("protocol.hrl").
|
|
||||||
-include("service_pb.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
|
%% API
|
||||||
-export([init/2]).
|
-export([init/2]).
|
||||||
-export([websocket_init/1, websocket_handle/2, websocket_info/2, terminate/3]).
|
-export([websocket_init/1, websocket_handle/2, websocket_info/2, terminate/3]).
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user