• 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: Cocoa HTTP Server & threading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa HTTP Server & threading


  • Subject: Re: Cocoa HTTP Server & threading
  • From: Brad Peterson <email@hidden>
  • Date: Tue, 19 Dec 2006 05:34:14 -0800 (PST)

Hi,

Thank you.

I agree that this is the right place, but I'm stumped.
I don't mean to be dense but I don't see any way to
convert this into something I can pass into NSThread's
detachNewThreadSelector.

Also, I don't think that responding in a separate
thread is what I need, since I really want it to
listen for connections in a separate thread; to make
the entire TCPServer class run in its own thread.

I'm afraid my grasp on threads isn't wonderful,
though. Is such a thing even possible?

Thanks again for your patience,

B



--- Andrew Farmer <email@hidden> wrote:

> On 18 Dec 06, at 18:56, Brad Peterson wrote:
> > Does anyone have ideas on how to make the
> > CocoaHTTPServer sample code application
> > multi-threaded?
> >
>
(http://developer.apple.com/samplecode/CocoaHTTPServer/)
>
> My first suggestion would be to take a close look at
> TCPServer.m and
> see where you can spin off a new thread for each
> request.
> TCPServerAcceptCallBack() looks like a good
> candidate.
>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Cocoa HTTP Server & threading
      • From: Dustin Voss <email@hidden>
    • Re: Re: Cocoa HTTP Server & threadin
      • From: "Philip Q" <email@hidden>
References: 
 >Re: Cocoa HTTP Server & threading (From: Andrew Farmer <email@hidden>)

  • Prev by Date: Re: No launch complete notification
  • Next by Date: Solved: Intermittent crash that's driving me nuts... any ideas?
  • Previous by thread: Re: Cocoa HTTP Server & threading
  • Next by thread: Re: Re: Cocoa HTTP Server & threadin
  • Index(es):
    • Date
    • Thread