SSH services (clients and servers) are implemented as channels
that are multiplexed over an SSH connection and communicates over
the
When implementing an
Type definitions that are used more than once in this module, or abstractions to indicate the intended use of the data type, or both:
list of ASCII characters
opaque() -as returned by
Makes a synchronous call to the channel process by sending
a message and waiting until a reply arrives, or a time-out
occurs. The channel calls
Sends an asynchronous message to the channel process and
returns ok immediately, ignoring if the destination node or
channel process does not exist. The channel calls
Makes an existing process an
The following options must be present:
The module that implements the channel behaviour.
The list of arguments to the
Reference to the
Id of the
This function is normally not called by the
user. The user only needs to call if the
channel process needs to be started with help of
This function can be used by a channel to send a
reply to a client that called
Starts a process that handles an SSH channel. It is
called internally, by the
The time-out values that can be returned by the callback functions
have the same semantics as in a
Converts process state when code is changed.
This function is called by a client-side channel when it
is to update its internal state during a release
upgrade or downgrade, that is, when the instruction
Soft upgrade according to the OTP release concept
is not straight forward for the server side, as subsystem
channel processes are spawned by the
Makes necessary initializations and returns the initial channel state if the initializations succeed.
For more detailed information on time-outs, see Section
Handles messages sent by calling
For more detailed information on time-outs,, see Section
Handles messages sent by calling
For more detailed information on time-outs, see Section
Handles other messages than SSH Connection Protocol, call, or cast messages sent to the channel.
Possible Erlang 'EXIT' messages is to be handled by this function and all channels are to handle the following message.
This is the first message that the channel receives.
It is sent just before the
Handles SSH Connection Protocol messages that may need
service-specific attention. For details,
see
The following message is taken care of by the
The channel behavior sends a close message to the
other side, if such a message has not already been sent.
Then it terminates the channel with reason
This function is called by a channel process when it is
about to terminate. Before this function is called,