Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with Tpowersock?

Status
Not open for further replies.

fll

Programmer
May 7, 2002
30
0
0
BE
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.

PS: I must use powersock. Laurent.

;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top