Back to product page

StateChange event


Fires when devVPN changes its state.

Remarks

StateChange event is fired each time devVPN changes its internal state. Initially it is set to StateDisconnected, but as you call devVPN's methods it will be changed to StateListening, StateSearching etc..

Using this event you can determine whether there is anything happening with devVPN. You can access current state using State property.

To use this event, you should implement function by yourself in the code (based on function declaration), and set devVPN.Events.StateChange structure member to point to your function.

Platforms

Windows
Mac OSX
Linux
BSD
iPhone IOS