From 42cc43a5e88ac578249def663f665723ecc53c46 Mon Sep 17 00:00:00 2001 From: Ingela Anderton Andin Date: Tue, 16 Jun 2015 15:54:07 +0200 Subject: ssh: Modernize type definitions --- lib/ssh/doc/src/ssh_connection.xml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'lib/ssh/doc/src/ssh_connection.xml') diff --git a/lib/ssh/doc/src/ssh_connection.xml b/lib/ssh/doc/src/ssh_connection.xml index 5422633dc3..e2b4e2ceb7 100644 --- a/lib/ssh/doc/src/ssh_connection.xml +++ b/lib/ssh/doc/src/ssh_connection.xml @@ -85,7 +85,7 @@ data_events() - +

Data has arrived on the channel. This event is sent as a result of calling ssh_connection:send/[3,4,5].

@@ -110,15 +110,15 @@ referred to are on OS-level and not something generated by an Erlang program.

- +

A remote execution can terminate violently because of a signal. Then this message can be received. For details on valid string values, see RFC 4254 Section 6.10, which shows a special case of these signals.

- +

When the command running at the other end terminates, the following message can be sent to return the exit status of the command. A zero exit_status usually means that the command @@ -148,18 +148,18 @@ with the boolean value of WantReply as the second argument.

- +

Environment variables can be passed to the shell/command to be started later. This event is sent as a result of calling ssh_connection:setenv/5.

+ WantReply :: boolean(), {Terminal :: string(), CharWidth :: integer(), + RowHeight :: integer(), PixelWidth :: integer(), PixelHeight :: integer(), + TerminalModes :: [{Opcode :: atom() | integer(), + Value :: integer()}]}}]]>

A pseudo-terminal has been requested for the session. Terminal is the value of the TERM environment variable value, that is, vt100. Zero dimension parameters must @@ -174,20 +174,20 @@ echo. This event is sent as a result of calling ssh_connection:ptty_alloc/4.

- +

This message requests that the user default shell is started at the other end. This event is sent as a result of calling ssh_connection:shell/2.

- +

When the window (terminal) size changes on the client side, it can send a message to the server side to inform it of the new dimensions. No API function generates this event.

+ WantReply :: boolean(), Cmd :: string()}]]>

This message requests that the server starts execution of the given command. This event is sent as a result of calling ssh_connection:exec/4 . @@ -256,7 +256,7 @@ N x {ssh_cm, ssh_connection_ref(), - {data, ssh_channel_id(), ssh_data_type_code(), binary() = Data}} + {data, ssh_channel_id(), ssh_data_type_code(), Data :: binary()}}

The result of executing the command can be only one line or thousands of lines depending on the command.

@@ -265,12 +265,12 @@ 0 or 1 x {ssh_cm, ssh_connection_ref(), {exit_signal, - ssh_channel_id(), string() = ExitSignal, string() = ErrorMsg, string() = LanguageString}} + ssh_channel_id(), ExitSignal :: string(), ErrorMsg :: string(), LanguageString :: string()}}

Not all systems send signals. For details on valid string values, see RFC 4254, Section 6.10

0 or 1 x {ssh_cm, ssh_connection_ref(), {exit_status, - ssh_channel_id(), integer() = ExitStatus}} + ssh_channel_id(), ExitStatus :: integer()}}

It is recommended by the SSH Connection Protocol to send this message, but that is not always the case.

-- cgit v1.2.3