Closing CFWriteStreams
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=HimUSgBjevHz9DXpgLIsYGvAzC3oi+s+R8l9e1LgKZLGIgEXBTw1/GDWn7UZsBYD3c C7imvmvEuhkngW7xBb6Q7aT02hI3hXtXtz3wY/1IKWivG/E7xBiwM4O+/ZIj02OYReJg NfG1kPexm94DvmqDNkczsdGcsiSMdF7yQh/jQ= 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=J3UZ0TZRQl75O+7O4+vA/Pew02BZxqUY30Jlko4UWOcugKXqqqymnKJ46KG23uScRR xJHFFwufHzdClZsbSvbz40z0z+vawdkQbnx+ipCKvhVNwQ3bKelJ+Kdfxj5DWXmpRbJH 1HTClBcNcHc+kkaGY2fX9WPPTCb8D0XEbSrJc= 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