• 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
Closing CFWriteStreams (re-sent)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Closing CFWriteStreams (re-sent)


  • Subject: Closing CFWriteStreams (re-sent)
  • From: Eli Bach <email@hidden>
  • Date: Thu, 19 Jun 2008 18:35:26 -0700

How can I do an orderly vs a disorder TCP disconnect using CFWriteStream in my daemon?

If I CFWriteStreamClose() immediately after my last CFWriteStreamWrite(), the data may or may not get sent out.

From the documentation, I gather that CFWriteStream buffers data internally before actually sending it down the wire, and I can query it if I can add data to the buffer, but there doesn't seem to be a way to query if that write buffer is empty, or to flush the buffer before closing the stream.

I'm using CFRead/WriteStreams using events on a single runloop.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Closing CFWriteStreams (re-sent)
      • From: Terry Lambert <email@hidden>
  • Prev by Date: RE: perl 5.8.8, backtick execution and leopard
  • Next by Date: Re: Closing CFWriteStreams (re-sent)
  • Previous by thread: RE: perl 5.8.8, backtick execution and leopard
  • Next by thread: Re: Closing CFWriteStreams (re-sent)
  • Index(es):
    • Date
    • Thread