How to cancel a Connect1() (General questions)
When calling connect1(), starts trying to connect to remote side.
1. Does it make sense, to call connect1() repeatly with the same params to heal a corrupted connection?
2. How to stop this connecting-Try?
With Disconnect1() or by Stop() and Start(APort)?
any ideas?
Re: How to cancel a Connect1()
Ben,
At 1) you mean re-start a broken connection? If so, yes, that should work.
As for second question, are we talking about Stopping Search, or stopping Connect method?
In case of Search, you should use RetryCount property and set it to 0 so wodVPN doesn't retry.
In case of Connect, Disconnect should fo fine.
Hope this helps.
Regards,
Damba