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
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
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
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
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
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
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
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
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