Back to product page

ChannelStop method


Called when specific channel has stopped.

Type

None

Syntax

  • Basic
object.ChannelStop  Owner, Chan, ErrorCode, ErrorText
The ChannelStop(object,Owner,Chan,ErrorCode,ErrorText) syntax has these parts:
objectAn expression evaluating to an object of type wodTunnelNotify.
OwnerRequired. A wodTunnelCom object. Reference to the wodTunnelCom instance that called this notification method.
ChanRequired. A Channel object. Reference to the channel that was started.
ErrorCodeRequired. An Integer value. Error code that occurred, or 0 if none.
ErrorTextRequired. A String value. Text description of error that occurred, if any.

Remarks

This method is called only if you have implemented the IwodSSHTunnelNotify interface in your application and the wodTunnel1.Notification property has received a reference to an instance of your implementation.

ChannelStop notification method is called when wodSSHTunnel stops accepting new users on a specific channel. It can also be invoked when Start is called but wodSSHTunnel is unable to start listening on the defined Port (for the LocalListen type) or receives a failure response from the SSH server upon a listening request (for the RemoteListen type).

Platforms

Windows