Description Called when byte data message arrives from remote side.
Return Type
None
Syntax
object.RelayDisconnected Owner, Relay, IP, Port, ID
The RelayDisconnected Method syntax has these parts:
|
object | An expression evaluating to an object of type IwodVPNNotify. | Owner |
A wodVPNCom object. Reference to the wodVPNCom instance that called this notification method. |
Relay | A VPNRelay object.
Reference to relay that is disconnected. |
IP | A String value. IP
address where peer is coming from. |
Port | A Long value. Port peer
is coming from |
ID | A String value. ID set by
the peer, if known. |
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. RelayDisconnected
notification method will be called when no packets are received from one
of the peers for several seconds, as it is defined in
Timeout property. When
Timeout property is set to 0, this method is never called since peers
are not auto-disconnected.
Once peer is auto disconnected, we suggest you close the relay, or
wait for other peer to leave too (he will since he will not receive
packets from another peer) since other peer may be left in unknown state.
|