Re: Cable disconnected event
Re: Cable disconnected event
- Subject: Re: Cable disconnected event
- From: Frederick Cheung <email@hidden>
- Date: Mon, 14 May 2007 17:37:53 +0100
On 14 May 2007, at 16:31, Marco Bambini wrote:
Hi all,
I am writing a server using C code and sockets.
Everything is working fine but the problem is that if the server is
blocked in a select statement waiting for commands from the client
side, if the network cable is disconnected then there is no way for
the server to know that the client is disconnected. Is there a way
to check for this kind of events? Is polling the client the only
solution to the "cable disconnected" event?
SCNetworkReachability (http://developer.apple.com/documentation/
Networking/Reference/SysConfig/SCNetworkReachability/index.html) is
useful for this sort of stuff
Fred
Thanks a lot,
---
Marco Bambini
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden