Closing CFWriteStreams (re-sent)
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