Hi, Wilfried I'm pleased to say that I've made good progress with the system so far but I'm not sure how to best implement server alternation.
Very simply, the current system works with a main server and a fail-over server. All initial connections are made to the main server (I have this part working fine) but, if the main server is unavailable then clients will attempt to connect to the fail-over server. What I need the client to do is try connecting to the other server if the current connection cannot be made within a few seconds or if the current connection gets dropped for any reason. I've started playing around with it but I'm not sure I'm doing things correctly. I saw a post (from you I think) in the ICS help that mentioned sending a message from the "sessionclosed" procedure but it didn't specify what message to send. Is there a list of messages that can be used with ICS? Regards, Adam -----Original Message----- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Wilfried Mestdagh Sent: 09 September 2011 09:04 To: 'ICS support mailing' Subject: Re: [twsocket] DLL implementation advice (or example)... Hi Adam, > The problem is that the DLL is quite unstable so I was trying to use a > different approach and hoping to get better stability. Are we talking about TWSocket in your second approach? > Right now, I have the basic DLL test project running - it is > connecting to my server but the worker thread is not terminating so > either the server is not sending a response or the ondatareceived > event is not triggering. I'm not sure if a TDatamodule is thread safe. Anyway I never used it. Note that what you create in a constructor is in main thread context. You have to create (and destroy) the components in the Execute method of that thread. If you do not then you have a false thread. -- mvg, Wilfried -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be