Hello,
I need some help or insights for the following situation: with my NetSimple App I connect to a Socket
of a another Software which I have no control of and send some data to them. It works well in general.
From time to time this Connection is closed by their Software, they dont know why. My question is
which kind of housekeeping I must do in between the connection breakdown and my reconnect.
Please have a look at my code (shortened), especially at the
:
in a timer event I have (the connection is opened in init)..
0{ prop:timer}= 0
now collectig the objects to send
loop over the objects
if ThisSender.OpenFlag
...
ThisSender.send()
else ! when the conn is closed by receiver
do I need here some housekeeping code or so
ThisSender.AsyncOpenUse= 0 ! I use sync mode
ThisSender.InActiveTimeout= 100000000
ThisSender.Open( ip, port)
if ThisSender.OpenFlag
...
ThisSender.send()
else
saving remaining objects to send for resending later
break
end
end
end!loop
0{ prop:timer}= 6000
Any hints appreciated.
TIA, Thomas