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.
SearchDone notification method will be called after you call
Search method, and wodVPN finishes it search for remote peer. At this time this can be successful search (ErrorCode set to 0), or some error may have been occurred.
Even search was successful, it doesn't mean you're yet connected to remote wodVPN. At this point you have enough information to initiate connection using
Connect method - and you should do so within next few minutes otherwise IP/Port may become invalid (since your router can release his NAT translation table).
Typically, you will have basic code inside this event, such as
- VPN1.Connect IP, Port
but you MUST have code similar to above in your SearchDone method.