• 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
Re: socket equivalent of OTCancelSynchronousCalls
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: socket equivalent of OTCancelSynchronousCalls


  • Subject: Re: socket equivalent of OTCancelSynchronousCalls
  • From: Frederick Cheung <email@hidden>
  • Date: Sat, 4 Jan 2003 11:33:37 +0100

On Saturday, Jan 4, 2003, at 05:48 Europe/Paris, Vincent Lubet wrote:

What you are trying to do is tricky with blocking Sockets. A solution is to generate a signal like SIGINT so the system call will return with the error EINTR -- the drawback is the signal is global for the process and you cannot target just the thread blocked on the network operation.

Do you really need to use blocking Sockets?

not particularly, it's just that my code currently uses blocking endpoints, which kept the code fairly simple. I was assuming that blocking sockets would also be a simple (i'm a newcomer to sockets).
how would one do this with sockets? or would cfsockets be more adapted for this?

Fred
_______________________________________________
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.

References: 
 >Re: socket equivalent of OTCancelSynchronousCalls (From: Vincent Lubet <email@hidden>)

  • Prev by Date: Re: socket equivalent of OTCancelSynchronousCalls
  • Next by Date: Re: Changing "Ethernet adaptor" name
  • Previous by thread: Re: socket equivalent of OTCancelSynchronousCalls
  • Next by thread: Re: socket equivalent of OTCancelSynchronousCalls
  • Index(es):
    • Date
    • Thread