TCPDisconnected Event
    
 

Description

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

Syntax

Private Sub object_TCPDisconnected(RemoteID, ErrorCode, ErrorText)

The TCPDisconnected Event syntax has these parts:

PartDescription
objectA wodVPN object.
RemoteIDA String value. Holds ID of remote peer.
ErrorCode A Long value. Error that occurred. 0 if none.
ErrorText A String value. Text description of the error.

Remarks

This event is fired 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.