Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cable disconnected event



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?


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:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.