Re: slightly OT (unblocking accept)
Re: slightly OT (unblocking accept)
- Subject: Re: slightly OT (unblocking accept)
- From: Kaelin Colclasure <email@hidden>
- Date: Sat, 02 Feb 2002 18:54:05 -0800
On 2/2/02 5:15 PM, "email@hidden" <email@hidden> wrote:
>
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?
$ man 2 getsockname
-- Kaelin