ソースを参照

ft: 纠正名字

master
SisMaker 1年前
コミット
f72956e90c
4個のファイルの変更10行の追加3行の削除
  1. +7
    -0
      src/misc/ntCom.erl
  2. +1
    -1
      src/proxyPt/ntPptMgrSup.erl
  3. +1
    -1
      src/ssl/ntSslMgrSup.erl
  4. +1
    -1
      src/tcp/ntTcpMgrSup.erl

+ 7
- 0
src/misc/ntCom.erl ファイルの表示

@ -113,6 +113,13 @@ lsName(ssl, PrName) ->
lsName(udp, PrName) ->
binary_to_atom(<<(atom_to_binary(PrName))/binary, "URs">>).
supName(tcp, PrName) ->
binary_to_atom(<<(atom_to_binary(PrName))/binary, "TSup">>);
supName(ssl, PrName) ->
binary_to_atom(<<(atom_to_binary(PrName))/binary, "SSup">>);
supName(udp, PrName) ->
binary_to_atom(<<(atom_to_binary(PrName))/binary, "USup">>).
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% This is a generic "port_command" interface used by TCP, UDP, SCTP, depending
%% on the driver it is mapped to, and the "Data". It actually sends out data,--

+ 1
- 1
src/proxyPt/ntPptMgrSup.erl ファイルの表示

@ -15,7 +15,7 @@
-spec(start_link(SupName :: atom(), Port :: inet:port_number(), ListenOpts :: [listenOpt()]) -> {ok, pid()} | {error, term()}).
start_link(SupName, Port, ListenOpts) ->
supervisor:start_link({local, SupName}, ?MODULE, {SupName, Port, ListenOpts}).
supervisor:start_link({local, ntCom:supName(ssl, SupName)}, ?MODULE, {SupName, Port, ListenOpts}).
init({SupName, Port, ListenOpts}) ->
SupFlag = #{strategy => one_for_one, intensity => 100, period => 3600},

+ 1
- 1
src/ssl/ntSslMgrSup.erl ファイルの表示

@ -15,7 +15,7 @@
-spec(start_link(SupName :: atom(), Port :: inet:port_number(), ListenOpts :: [listenOpt()]) -> {ok, pid()} | {error, term()}).
start_link(SupName, Port, ListenOpts) ->
supervisor:start_link({local, SupName}, ?MODULE, {SupName, Port, ListenOpts}).
supervisor:start_link({local, ntCom:supName(ssl, SupName)}, ?MODULE, {SupName, Port, ListenOpts}).
init({SupName, Port, ListenOpts}) ->
SupFlag = #{strategy => one_for_one, intensity => 100, period => 3600},

+ 1
- 1
src/tcp/ntTcpMgrSup.erl ファイルの表示

@ -15,7 +15,7 @@
-spec(start_link(SupName :: atom(), Port :: inet:port_number(), ListenOpts :: [listenOpt()]) -> {ok, pid()} | {error, term()}).
start_link(SupName, Port, ListenOpts) ->
supervisor:start_link({local, SupName}, ?MODULE, {SupName, Port, ListenOpts}).
supervisor:start_link({local, ntCom:supName(tcp, SupName)}, ?MODULE, {SupName, Port, ListenOpts}).
init({SupName, Port, ListenOpts}) ->
SupFlag = #{strategy => one_for_one, intensity => 100, period => 3600},

読み込み中…
キャンセル
保存