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