Test Server reachable BEFORE connect
Posted: 25.04.2017, 07:50
Is it possible to test, if a server is reachable before the ZConnection is activated.
I looked inside the ping and pingserver, but both use FConnection, but FConnection is not created at this time. I want to use this to decide to use a buffed Dataset or to connect to a server. One goal is, the must not wait for an timeout. A ping on OS is possible, but i see only if the Server is up, not if a service is up and reachable.
I have searched around (in this forum too), but i found only entires the worked on a open Connection like reconnect and lost connection, not at 'befor connection' time.
Any hint to handle this ?
Andreas
Edit: Win10_64/Lazarus_32/ZeosTrunk/ado/MsSql
I looked inside the ping and pingserver, but both use FConnection, but FConnection is not created at this time. I want to use this to decide to use a buffed Dataset or to connect to a server. One goal is, the must not wait for an timeout. A ping on OS is possible, but i see only if the Server is up, not if a service is up and reachable.
I have searched around (in this forum too), but i found only entires the worked on a open Connection like reconnect and lost connection, not at 'befor connection' time.
Any hint to handle this ?
Andreas
Edit: Win10_64/Lazarus_32/ZeosTrunk/ado/MsSql