fSuccessfullyConnected is set to true on receiving VERACK from the peer.
Declared in <net.h>
<net.h>
std::atomic_bool fSuccessfullyConnected = {false};