TCPDisconnected Method
      
 

Description

Called after TCP handler disconnects from mediator, or from remote peer.

Return Type

None  

Syntax

object.TCPDisconnected Owner, RemoteID, ErrorCode, ErrorText

The TCPDisconnected 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.
User A String value. Holds ID of remote peer.
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 connection with remote peer is broken, or was not established at all. You can get details about possible error that have occurred. If connection is broken after it was already established, socket is no longer in Listen state and you should call Listen method again.