On 2 Aug 2013, at 16:30, Marco Bambini <marco@vampiresoft.com> wrote:
What is not clear to me is which action to perform in case of -1 … I mean should I just try again or should I abort current function?
You should check errno. If it's EINTR, loop back immediately. If it's EWOULDBLOCK and you're doing the accept in a non-blocking fashion, you can just ignore the error and wait for the next async connection indication. Otherwise it's a real error and you should report it accordingly. Share and Enjoy -- Quinn "The Eskimo!" <http://www.apple.com/developer/> Apple Developer Relations, Developer Technical Support, Core OS/Hardware _______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (Macnetworkprog@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/macnetworkprog/site_archiver%40lists... This email sent to site_archiver@lists.apple.com
participants (1)
-
Quinn "The Eskimo!"