This module replaces ssh_daemon_channel.
The old module is still available for compatibility, but should not be used for new programs. The old module will not be maintained except for some error corrections
SSH services (clients and servers) are implemented as channels
that are multiplexed over an SSH connection and communicates over
the
When implementing a client subsystem handler, use
The following functions are to be exported from a
Makes necessary initializations and returns the initial channel state if the initializations succeed.
The time-out values that can be returned
have the same semantics as in a
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.
This is especially useful if the
server wants to send a message to the client without first
receiving a message from it. If the message is not
useful for your particular scenario, ignore it by
immediately returning
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,