Dear All !
We are developping an automatic downloading application in Delphi V Professional.
Our System is a "Dual" system, with a "Master" Node and a "Slave" Node.
It is absolutely necessary to known which Node is master just before the download to be sure to respect the files integrity.
So... we tried to test the socket connection on Nodes a and b before downloading using the PowerSock module of the fastnet group.
We tried to use events "OnConnect" and "OnConnectionFailed" to check which Node was currently active...
We also tried to introduce "sleeps" before retrying and retried up to 50 times, but the answer was always disappointing : on the "Slave", the connection was always negative, but on the "Master", we could only have, seemingly randomly, sometimes, 5 - 7 positive connections from 50 trials, sometimes also 0 positive connection.
We need a from far more reliable answer for security reasons and need an immediate indication of the status of our Nodes...
Can anyone help us, please ?
Thanks a lot in advance.
Laurent.
;-)
We are developping an automatic downloading application in Delphi V Professional.
Our System is a "Dual" system, with a "Master" Node and a "Slave" Node.
It is absolutely necessary to known which Node is master just before the download to be sure to respect the files integrity.
So... we tried to test the socket connection on Nodes a and b before downloading using the PowerSock module of the fastnet group.
We tried to use events "OnConnect" and "OnConnectionFailed" to check which Node was currently active...
We also tried to introduce "sleeps" before retrying and retried up to 50 times, but the answer was always disappointing : on the "Slave", the connection was always negative, but on the "Master", we could only have, seemingly randomly, sometimes, 5 - 7 positive connections from 50 trials, sometimes also 0 positive connection.
We need a from far more reliable answer for security reasons and need an immediate indication of the status of our Nodes...
Can anyone help us, please ?
Thanks a lot in advance.
Laurent.
;-)