not receiving kCFStreamEventCanAcceptBytes
not receiving kCFStreamEventCanAcceptBytes
- Subject: not receiving kCFStreamEventCanAcceptBytes
- From: Matthew Rushton <email@hidden>
- Date: Thu, 16 Oct 2008 11:00:20 -0700 (PDT)
Hi,
This is my first post, I searched the list and docs with no luck for help. I'm writing a single threaded app that uses CFNetwork and callbacks for network communication. At all times I keep track of whether I can write to my stream by tracking kCFStreamEventCanAcceptBytes messages. I expect to receive one after each write I do to alert me I can write again. The problem is I've seemed to hit a case where I do a write and never get a message which of course stalls all communication. If I write anyway the write succeeds. My question is should I expect a message after each write? What if I write outside of my callback function, will I receive messages then? What could cause these messages to simply stop being sent despite everything else to appear fine? Thanks in advance.
-Matt
_______________________________________________
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