Link to home
Start Free TrialLog in
Avatar of ljaques
ljaques

asked on

Using Winsock To Tell When Disconnected from Net

Is there a command(s) which can tell me if I'm still connected to the internet or disconnected? I don't want to check the "state" method in a repeating loop after a connect call and wait for an error to occur to tell if its been disconnected. What I want to know is if Im already connected to the net and am trasnfering something via the winsock control and then all of a sudden i get disconnected is there a function to let me know when this disconnection happens?
ASKER CERTIFIED SOLUTION
Avatar of kacklehorn
kacklehorn

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ljaques
ljaques

ASKER

Thanks a lot