wodSSHTunnel ActiveX Control - UserConnected Event
    
 

Description

Fires when a user connects to the listening channel.


Syntax

Private Sub object_UserConnected(Chan, User, ErrorCode, ErrorText)



The UserConnected Event syntax has these parts:

Part Description
object A wodTunnel object.
Chan A Channel object. Reference to the channel where the user connected.
User An User object. Reference to user that connected.
ErrorCode An Integer value. Specifies the error that occurred, if any.
ErrorText A String value. Holds a text description of the error.

Remarks

The UserConnected event is fired after you have allowed the User to connect and use the channel that they have chosen. From this point, they will be communicating with the destination service through the secure channel.

If the connection for the user fails (for whatever reason), the ErrorCode argument will hold one of the following nonzero values:

Code Description
 
0 No Error
1 Administratively prohibited
2 Connect failed
3 Unknown channel type
4 Resource shortage
5 Unknown error, or not specified

If the server provides a text description, it will be provided through the ErrorText argument.