RE: Threading problem using AsyncSocket

2008-08-15 Thread Robbie Hanson
Jonathan, You might be interested to know that I just posted some sample code demonstrating multithreading with AsyncSocket. It's a sample HTTP server that splits incoming connections across multiple background threads. Check out the blog post: http://deusty.blogspot.com/2008/08/multi-th

RE: Threading problem using AsyncSocket

2008-08-15 Thread Matthew Youney
n Behalf Of Sent: Thursday, August 14, 2008 5:04 PM To: Subject: Re: Threading problem using AsyncSocket (Matthew Youney) I don't know about your threading problem but surely the whole point of AsyncSocket is the Async bit. It is designed to attach itself to the runloop and remove t

RE: Threading problem using AsyncSocket

2008-08-15 Thread Matthew Youney
Jonathan, Thank you sooo much for your assistance. Here's what ended up working for me: 1. I did update my AsyncSocket class as suggested. Thanks. 2. I determined that my runloop was not functioning as expected using your suggestions. As you said, there is a lot of information here, a

Re: Threading problem using AsyncSocket (Matthew Youney)

2008-08-15 Thread jonathan
all feedback, Matt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Thursday, August 14, 2008 5:04 PM To: cocoa-dev@lists.apple.com Subject: Re: Threading problem using AsyncSocket (Matthew Youney) I don't know about your threading problem b

Re: Threading problem using AsyncSocket (Matthew Youney)

2008-08-15 Thread jonathan
ssage- From: cocoa-dev-bounces+matt=youney. [mailto:cocoa-dev-bounces+matt=youney.]On Behalf Of Sent: Thursday, August 14, 2008 5:04 PM To: Subject: Re: Threading problem using AsyncSocket (Matthew Youney) I don't know about your threading problem but surely the whole point of AsyncSocket

RE: Threading problem using AsyncSocket (Matthew Youney)

2008-08-14 Thread Matthew Youney
Behalf Of [EMAIL PROTECTED] Sent: Thursday, August 14, 2008 5:04 PM To: cocoa-dev@lists.apple.com Subject: Re: Threading problem using AsyncSocket (Matthew Youney) I don't know about your threading problem but surely the whole point of AsyncSocket is the Async bit. It is designed to attac

Re: Threading problem using AsyncSocket (Matthew Youney)

2008-08-14 Thread [EMAIL PROTECTED]
I don't know about your threading problem but surely the whole point of AsyncSocket is the Async bit. It is designed to attach itself to the runloop and remove the need for blocking sockets etc on threads. I use AsyncSocket extensively within the main thread and it can handle multiple conne

RE: Threading problem using AsyncSocket

2008-08-14 Thread Matthew Youney
Jack, Sorry for the confusion, my e-mail program (outlook) capitalized the R. It is indedd rLoop in my code. Matt -Original Message- From: Jack Carbaugh [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2008 4:30 PM To: Matthew Youney Subject: Re: Threading problem using AsyncSocket

RE: Threading problem using AsyncSocket

2008-08-14 Thread Matthew Youney
appropriate for a worker thread? Again, thanks, Matt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Marcelo Alves Sent: Thursday, August 14, 2008 2:55 PM To: [EMAIL PROTECTED] Subject: Re: Threading problem using AsyncSocket I think you need a runloop in the worker