UserDisconnected Method
      
 

Description

Called when user disconnects from the channel.

Return Type

None  

Syntax

object.UserDisconnected Owner, Chan, User, ErrorCode, ErrorText

The UserDisconnected Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type IwodVPNNotify.
Owner A wodVPNCom object. Reference to the wodVPNCom instance that called this notification method.
Chan A VPNChannel object. Reference to channel used.
User A VPNUser object. Reference to user that has disconnected.
ErrorCodeA Long value. Error that occurred. 0 if none.
ErrorTextA String value. Text description of the error.

Remarks

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

This notification method is called when user leaves the channel. At this point he will be removed from the collection of all connected users, so this is last change to access information about the user.

If disconnection was result of an error, ErrorCode and ErrorText arguments will contain decription of the error.

Note that if UDP channel was used, UserDisconnected event may be result of user being idle for certain amount of seconds, depending on User.Timeout property value.