diff options
author | Simponic <loganhunt@simponic.xyz> | 2022-12-30 05:46:35 -0700 |
---|---|---|
committer | Simponic <loganhunt@simponic.xyz> | 2022-12-30 05:46:35 -0700 |
commit | 42425b02260d279cd9c12fb3e625282979b9e308 (patch) | |
tree | 0412bf9f39d44266cff94082c499e44e5f6e60f5 /lib/chessh/ssh/cli.ex | |
parent | 60eea1b4ed65bc7cfce1e383dac6de9d004540eb (diff) | |
download | chessh-42425b02260d279cd9c12fb3e625282979b9e308.tar.gz chessh-42425b02260d279cd9c12fb3e625282979b9e308.zip |
Add scalable session thresholds
Diffstat (limited to 'lib/chessh/ssh/cli.ex')
-rw-r--r-- | lib/chessh/ssh/cli.ex | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/chessh/ssh/cli.ex b/lib/chessh/ssh/cli.ex new file mode 100644 index 0000000..7ab0433 --- /dev/null +++ b/lib/chessh/ssh/cli.ex @@ -0,0 +1,26 @@ +defmodule Chessh.SSH.Cli do + @behaviour :ssh_server_channel + + def init() do + {:ok, %{}} + end + + def handle_msg(message, state) do + {:ok, state} + end + + def handle_ssh_msg(message, state) do + {:ok, state} + end + + def handle_ssh_msg( + {:ssh_cm, _connection_handler, {:exit_signal, channel_id, signal, err, lang}}, + state + ) do + {:stop, channel_id, state} + end + + def terminate(reason, state) do + :ok + end +end |