This sample demonstrates the ability to detect ‘dead’ connections. (It is used together with the ConnectCtx sample.)
In a console window run
target\bin\createdb_snifferThen in a second console window run
ConnectCtxBut it is more instructive to run one instance in your development environment debugger, stepping through the code.