Re: slightly OT (unblocking accept)
Re: slightly OT (unblocking accept)
- Subject: Re: slightly OT (unblocking accept)
- From: email@hidden
- Date: Sat, 2 Feb 2002 17:15:29 -0800
following up my own question... I'm now using
acceptConnectionInBackgroundAndNotify: but have a small issue...
What comes back in the accept notification is an NSFileHandle instance.
That opaque fd works fine, but I was hoping to be able to get at what
remote address and port it got back from accept().
Anyone know of a way to derive that from an fd?
On Saturday, February 2, 2002, at 03:48 PM, email@hidden wrote:
I'm using SmallSockets and have a thread blocked in accept() waiting on
external connections.
I'm wondering if there's a way to stop that thread. All I can see from
the NSThread documentation is the class method + exit; which seems like
it must be called from the thread that wants to exit, not an external
one.
Is there some magic fcntl() or other NSThread magic that I can use to
tell the thread blocked in accept() to unblock so i can kill it?