• 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: CFWriteStreamCallback stops being called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFWriteStreamCallback stops being called


  • Subject: Re: CFWriteStreamCallback stops being called
  • From: "Shawn Erickson" <email@hidden>
  • Date: Wed, 30 Jul 2008 08:24:49 -0700

On Wed, Jul 30, 2008 at 8:02 AM, Liwei <email@hidden> wrote:
> *Groans*
>
> How then do I check if the flag is set without polling? I thought the
> whole purpose of using run-loops is to be able to eliminate the need
> to poll something?

Not sure why you think you need to poll? Also why would a runloop fire
the same event every time it runs a cycle... then it would just be
polling which it not what it is for.

If your socket can accept more data then signal your writer to write
data. If your writer doesn't have data to send then it does nothing.
As soon as your writer has data to send (presuming it would know when
this happened) it can explicitly check if the stream is ready to
receive more data.

> (A side question, is there something in OSX that I can use to log my
> error messages? Something more native to OSX than stderr?)

man asl

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

  • Follow-Ups:
    • Re: CFWriteStreamCallback stops being called
      • From: Quinn <email@hidden>
    • Re: CFWriteStreamCallback stops being called
      • From: Liwei <email@hidden>
References: 
 >CFWriteStreamCallback stops being called (From: Liwei <email@hidden>)
 >Re: CFWriteStreamCallback stops being called (From: "Marcelo Alves" <email@hidden>)
 >Re: CFWriteStreamCallback stops being called (From: Liwei <email@hidden>)

  • Prev by Date: Re: CFWriteStreamCallback stops being called
  • Next by Date: Re: CFWriteStreamCallback stops being called
  • Previous by thread: Re: CFWriteStreamCallback stops being called
  • Next by thread: Re: CFWriteStreamCallback stops being called
  • Index(es):
    • Date
    • Thread