• 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: Vincent Lubet <email@hidden>
  • Date: Fri, 3 Jan 2003 20:48:45 -0800

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?

Vincent

On Friday, January 3, 2003, at 12:46 PM, Frederick Cheung wrote:

I am in the process of changing a program so that it uses BSD sockets instead of open transport.
My application does its network business from MP threads (synchronous, blocking endpoints). Before, when i wanted to abort a network operation, I would send a message to the thread's queue and call OTCancelSynchronousCalls in case the task was blocked on some network operation.
What should I do, now that I am using sockets?

Thanks
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.
_______________________________________________
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: socket equivalent of OTCancelSynchronousCalls
      • From: Frederick Cheung <email@hidden>
References: 
 >socket equivalent of OTCancelSynchronousCalls (From: Frederick Cheung <email@hidden>)

  • Prev by Date: Re: IP of a connected Mac
  • Next by Date: Re: socket equivalent of OTCancelSynchronousCalls
  • Previous by thread: socket equivalent of OTCancelSynchronousCalls
  • Next by thread: Re: socket equivalent of OTCancelSynchronousCalls
  • Index(es):
    • Date
    • Thread