Internet Connection Checking?

Hi there.

Can anybody tell me how to let my program now if there is an internet
connection at that very moment? I mean, i have an app that wants to check
for an internet connection every second. Thanxz-a-lot.

Vinnie  :-)
sq...@wish.net