EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Terminate an asynchronous connection using a timeout

Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.
#14573
Posted: 09/24/2010 10:10:35
by Shaun OM (Standard support level)
Joined: 08/10/2010
Posts: 12

Hi,
Using ElClientSSLSocket I call beginConnect.
If there is a problem with the server accepting the connection then this can take a long time to return.
I want to timeout my connection attempt after 10 seconds (and I'll try again later).

How should I terminate the connection activity.

Note: I have tried calling the CloseSocket method but this can still take nearly a minute before the ConnectCallback event fires.

Thanks
Shaun
#14574
Posted: 09/24/2010 11:09:22
by Ken Ivanov (EldoS Corp.)

Hmm, the CloseSocket() method actually should work. Will re-check this under .NET CF now.

Reply

Statistics

Topic viewed 1000 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!