Socket timeout ?

wl

Well-Known Member
Licensed User
Longtime User
Hello,

I'm trying to use async sockets in a service module:

When all is well I will
- get the Socket Connected event
- Initialize an async stream
- receive a NewData event of the stream

When all is well this works.

However when something fails I would like to restart the procedure by restarting the service after a few seconds.

I know I can set the Timeout property, but how can I react to any timeout (during connection or while waiting for data) ? What events can I write ?

Thanks !!

Wim
 

wl

Well-Known Member
Licensed User
Longtime User
I think I found it, just by looking in the XML description file of the libraries.

It seems Streams have following events: NewData, Error and Terminated.

Might be a beginners tip to include in the manual ?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…