aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh_connection_manager.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2013-10-04 16:05:22 +0200
committerIngela Anderton Andin <[email protected]>2013-11-13 10:58:19 +0100
commitd53cea682010766c82ba7088f40efcfafe196621 (patch)
tree6a7794a8863977944d52ec907109ef179d23ffd8 /lib/ssh/src/ssh_connection_manager.erl
parenta5128108ad3efff77c5080f0769737e70a0bfd82 (diff)
downloadotp-d53cea682010766c82ba7088f40efcfafe196621.tar.gz
otp-d53cea682010766c82ba7088f40efcfafe196621.tar.bz2
otp-d53cea682010766c82ba7088f40efcfafe196621.zip
ssh: Remove use of process dictionary
This is step one in in making ssh process structure less complicated. As an effect I also found other simplifications/clean ups of the code that could be done.
Diffstat (limited to 'lib/ssh/src/ssh_connection_manager.erl')
-rw-r--r--lib/ssh/src/ssh_connection_manager.erl6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/ssh/src/ssh_connection_manager.erl b/lib/ssh/src/ssh_connection_manager.erl
index 99a0b6a7c8..fb57a790fe 100644
--- a/lib/ssh/src/ssh_connection_manager.erl
+++ b/lib/ssh/src/ssh_connection_manager.erl
@@ -183,7 +183,6 @@ send_eof(ConnectionManager, ChannelId) ->
%%--------------------------------------------------------------------
init([server, _Socket, Opts]) ->
process_flag(trap_exit, true),
- ssh_bits:install_messages(ssh_connection:messages()),
Cache = ssh_channel:cache_create(),
{ok, #state{role = server,
connection_state = #connection{channel_cache = Cache,
@@ -196,7 +195,6 @@ init([server, _Socket, Opts]) ->
init([client, Opts]) ->
process_flag(trap_exit, true),
{links, [Parent]} = process_info(self(), links),
- ssh_bits:install_messages(ssh_connection:messages()),
Cache = ssh_channel:cache_create(),
Address = proplists:get_value(address, Opts),
Port = proplists:get_value(port, Opts),
@@ -762,7 +760,7 @@ cast(Pid, Msg) ->
gen_server:cast(Pid, Msg).
decode_ssh_msg(BinMsg) when is_binary(BinMsg)->
- ssh_bits:decode(BinMsg);
+ ssh_message:decode(BinMsg);
decode_ssh_msg(Msg) ->
Msg.
@@ -774,7 +772,7 @@ do_send_msg({channel_data, Pid, Data}) ->
do_send_msg({channel_requst_reply, From, Data}) ->
gen_server:reply(From, Data);
do_send_msg({connection_reply, Pid, Data}) ->
- Msg = ssh_bits:encode(Data),
+ Msg = ssh_message:encode(Data),
ssh_connection_handler:send(Pid, Msg);
do_send_msg({flow_control, Cache, Channel, From, Msg}) ->
ssh_channel:cache_update(Cache, Channel#channel{flow_control = undefined}),