Erlang ssh server #2 #2

Merged
Simponic merged 5 commits from erlang_ssh_server into main 2022-12-30 07:53:16 -05:00
Showing only changes of commit 9add1557b3 - Show all commits

View File

@ -5,22 +5,22 @@ defmodule Chessh.SSH.Cli do
{:ok, %{}} {:ok, %{}}
end end
def handle_msg(message, state) do def handle_msg(_message, state) do
{:ok, state}
end
def handle_ssh_msg(message, state) do
{:ok, state} {:ok, state}
end end
def handle_ssh_msg( def handle_ssh_msg(
{:ssh_cm, _connection_handler, {:exit_signal, channel_id, signal, err, lang}}, {:ssh_cm, _connection_handler, {:exit_signal, channel_id, _signal, _err, _lang}},
state state
) do ) do
{:stop, channel_id, state} {:stop, channel_id, state}
end end
def terminate(reason, state) do def handle_ssh_msg(_message, state) do
{:ok, state}
end
def terminate(_reason, _state) do
:ok :ok
end end
end end