From 422ed9ecd9c95c25964381b7ca2888a0320a8ee4 Mon Sep 17 00:00:00 2001 From: Ingela Anderton Andin Date: Wed, 6 Nov 2013 10:54:02 +0100 Subject: ssh: Simplify handling of connection attributes (e.i. user and sockname) OTP-11296 --- lib/ssh/doc/src/ssh.xml | 34 +++++----------------------------- 1 file changed, 5 insertions(+), 29 deletions(-) (limited to 'lib/ssh/doc') diff --git a/lib/ssh/doc/src/ssh.xml b/lib/ssh/doc/src/ssh.xml index b338241685..3409681af4 100644 --- a/lib/ssh/doc/src/ssh.xml +++ b/lib/ssh/doc/src/ssh.xml @@ -198,8 +198,11 @@ Value}] Retrieves information about a connection. - Option = client_version | server_version | peer - Value = term() + Option = client_version | server_version | user | peer | sockname + Value = [option_value()] + option_value() = {{Major::integer(), Minor::integer()}, VersionString::string()} | User::string() | + Peer::{inet:hostname(), {inet::ip_adress(), inet::port_number()}} | + Sockname::{inet::ip_adress(), inet::port_number()} ()

Retrieves information about a connection. @@ -325,19 +328,6 @@ - - peername(ConnectionRef) -> {ok, {Address,Port}} | {error,Error} - - - ConnectionRef = ssh_connection_ref() - Address = ip_address() - Port = integer() - - -

Returns the address and port for the other end of a connection. -

-
- shell(Host) -> @@ -358,20 +348,6 @@ - - sockname(ConnectionRef) -> {ok, {Address,Port}} | {error,Error} - - - ConnectionRef = ssh_connection_ref() - Address = ip_address() - Port = integer() - - -

Returns the local address and port number for a connection. -

-
-
- start() -> start(Type) -> ok | {error, Reason} -- cgit v1.2.3