Closing CFWriteStreams (re-sent)
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date:cc :x-mailer; bh=fbOogFYaF3gxYE7pJA081A0iL3zo2gSZAFRylID4Cys=; b=rx0Jb2LS6mZR1WffOkZpoI4irPsgyTpGI/mU04meJvsLB5Pr7UTZdHtEPmHT1tKjmA P09fTimBIFBuPd2no7lIvu8CzonOnvBHuo0aqGwni4U5rSUf3XBQmOROLL/x5euGKCdo rcroi7GOUmLfnkRedf6liKDtlVCA9VOyPkFaw= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:cc:x-mailer; b=xukK88PtxGJNpP1oVk5baO5mzME1W5cRuuVtsQpNm6/AesDYoCVqmD2iqsn1LJ6XNv XAQ2vuOq70AnK89vAg4DRzRsfUF8DdYjWx6j3qPXsJafnGpRvCmuOTDH5mTzkuXK7LY2 KoIgaNAxU0Lvzl0xd/uh02LCLwuMeCkNJdWgQ= 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Eli Bach