How to cancel a Connect1() - WeOnlyDo Discussion board

How to cancel a Connect1() (General questions)

by bencoder, Friday, November 07, 2008, 16:02 (5859 days ago)

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()

by wodDamir, Friday, November 07, 2008, 16:48 (5859 days ago) @ bencoder

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