Re: socket equivalent of OTCancelSynchronousCalls
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.