summaryrefslogtreecommitdiff
path: root/components/dlink_tcp
diff options
context:
space:
mode:
authorMagnus Feuer <mfeuer@jaguarlandrover.com>2015-06-29 11:04:01 -0700
committerMagnus Feuer <mfeuer@jaguarlandrover.com>2015-06-29 11:04:01 -0700
commit2282cfb99fffaef7fecee6dd949db5c2adb839bc (patch)
tree2223d450d12d43905a5127957ab6f7b072a5275c /components/dlink_tcp
parent433beee6ef1d08f99a2caae104891959a9cb7d59 (diff)
downloadrvi_core-2282cfb99fffaef7fecee6dd949db5c2adb839bc.tar.gz
certificate-next: Fixed typo level bugs.
Diffstat (limited to 'components/dlink_tcp')
-rw-r--r--components/dlink_tcp/src/dlink_tcp_rpc.erl13
1 files changed, 7 insertions, 6 deletions
diff --git a/components/dlink_tcp/src/dlink_tcp_rpc.erl b/components/dlink_tcp/src/dlink_tcp_rpc.erl
index 3bf863c..4336948 100644
--- a/components/dlink_tcp/src/dlink_tcp_rpc.erl
+++ b/components/dlink_tcp/src/dlink_tcp_rpc.erl
@@ -37,9 +37,10 @@
-include_lib("rvi_common/include/rvi_dlink.hrl").
-define(PERSISTENT_CONNECTIONS, persistent_connections).
--define(DEFAULT_BERT_RPC_PORT, 9999).
+-define(SERVER_OPTS, server_opts).
+-define(DEFAULT_TCP_PORT, 9999).
-define(DEFAULT_RECONNECT_INTERVAL, 5000).
--define(DEFAULT_BERT_RPC_ADDRESS, "0.0.0.0").
+-define(DEFAULT_TCP_ADDRESS, "0.0.0.0").
-define(DEFAULT_PING_INTERVAL, 300000). %% Five minutes
-define(SERVER, ?MODULE).
-define(DLINK_TCP_VERSION, "1.0").
@@ -93,11 +94,11 @@ start_connection_manager() ->
CompSpec = rvi_common:get_component_specification(),
{ok, BertOpts } = rvi_common:get_module_config(data_link,
?MODULE,
- server_opts,
+ ?SERVER_OPTS,
[],
CompSpec),
- IP = proplists:get_value(ip, BertOpts, ?DEFAULT_BERT_RPC_ADDRESS),
- Port = proplists:get_value(port, BertOpts, ?DEFAULT_BERT_RPC_PORT),
+ IP = proplists:get_value(ip, BertOpts, ?DEFAULT_TCP_ADDRESS),
+ Port = proplists:get_value(port, BertOpts, ?DEFAULT_TCP_PORT),
?info("dlink_tcp:init_rvi_component(~p): Starting listener.", [self()]),
@@ -528,7 +529,7 @@ handle_call({setup_initial_ping, Address, Port, Pid}, _From, St) ->
%% Create a timer to handle periodic pings.
{ok, ServerOpts } = rvi_common:get_module_config(data_link,
?MODULE,
- bert_rpc_server, [],
+ ?SERVER_OPTS, [],
St#st.cs),
Timeout = proplists:get_value(ping_interval, ServerOpts, ?DEFAULT_PING_INTERVAL),