• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Cancelling socket operations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cancelling socket operations


  • Subject: Cancelling socket operations
  • From: Tom Bayley <email@hidden>
  • Date: Fri, 2 Aug 2002 12:25:39 +0100

Hello all,

I'm trying to improve the way we manage things like time-outs and abort requests in our TCP I/O classes. I think I've sussed the time-out options - but I'm still not sure how to abort. I mean the sort of situations where the user has decided a connection attempt will fail and he/she/it doesn't want to hang around for the time-out. Or perhaps the other end stops sending and again the user wants to short-circuit the time-out.

What this seems to boil down to is some way of aborting select(). I need to support threads so I don't really want to use signals, especially since OS X doesn't appear to implement pthread_kill(). So what is the recommended solution? Can I just close the socket from another thread?

Tom
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Cancelling socket operations
      • From: Peter Sichel <email@hidden>
  • Prev by Date: Getting HW built-in ethernet address
  • Next by Date: Re: Getting HW built-in ethernet address
  • Previous by thread: Re: Getting HW built-in ethernet address
  • Next by thread: Re: Cancelling socket operations
  • Index(es):
    • Date
    • Thread