• 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: slightly OT (unblocking accept)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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?


  • Follow-Ups:
    • Re: slightly OT (unblocking accept)
      • From: Kaelin Colclasure <email@hidden>
References: 
 >slightly OT (unblocking accept) (From: email@hidden)

  • Prev by Date: Re: NSImage -> OpenGL textures?
  • Next by Date: Re: MultiProcessing & Cocoa...
  • Previous by thread: slightly OT (unblocking accept)
  • Next by thread: Re: slightly OT (unblocking accept)
  • Index(es):
    • Date
    • Thread