Re: not receiving kCFStreamEventCanAcceptBytes
Re: not receiving kCFStreamEventCanAcceptBytes
- Subject: Re: not receiving kCFStreamEventCanAcceptBytes
- From: Eli Bach <email@hidden>
- Date: Thu, 16 Oct 2008 12:32:46 -0700
On Oct 16, 2008, at 11:37 AM, Matthew Rushton wrote:
So I think I know the issue now but still don't fully understand it.
It seems I need to call:
CFRunLoopWakeUp(CFRunLoopGetCurrent())
after writing to my write stream (I'm writing from outside the
callback in this case). Is this normal? I expected the run loop to
get woken up for me. Here's how I create them:
//set write stream client
Matthew,
I'm not sure why you need to do this. I've written a client/server
using CFRead/WriteStream and always seem to get
kCFStreamEventCanAcceptBytes properly.
But, I also only read/write from events on the same runloop that the
streams are installed on.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden