Link to home
Start Free TrialLog in
Avatar of Wolfie320
Wolfie320

asked on

Winsock and dropped connections.

How can my client application detect that the connection to a server device is gone/lost, 'network cable is removed', before i send data with the send function?

Avatar of benny_czarny
benny_czarny

I suppose it is a tcp connection ?

and regular sockets ( not a class )
? under NT ?
visual c++ ?

 
ASKER CERTIFIED SOLUTION
Avatar of ufolk123
ufolk123

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
the tcp stack sends a keep alive packet from time to time
you can control that via sessionKeepalive registry param
to increase resolution you'ld probably need to decrease the keep alive intervals

opps I did not see your comment