| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| Justin - thanks for taking the time to respond. I'm pretty sure you're missing the point, but it could always be me instead :) The point here was to set up a two way communication locally on the client machine, within the application's address space. The goal is to produce a single "read stream" from which CFNetwork can pull bytes dynamically from the application code's corresponding write stream. To achieve that goal, I used the socketpair concept in conjunction with socket streams to provide CFNetwork with a read stream whose content was provided by my application code's write stream callbacks. In this way I can provide data to CFNetwork from memory instead of, for example, from a single file on disk. In particular, this was important to me because I needed to send multiple files in a single HTTP multi-part POST. Without this solution, I would have to either read all the file data into a single HTTP request, or else copy all the files into a separate multi-part file on disk which I could then point CFNetwork at with a file read stream. I suspect that the part of my description that set of your bogus-meter was my use of the terms "server" and "client" to refer to CFNetwork and the application code. The sockets I describe in my message quoted below are local UNIX domain sockets, and have nothing to do with the remote server, except that they're used as a tricky means of getting CFNetwork to dynamically provide data to the remote server (through its own *single*, completely separate from my sockets read/write socket). Don't know if this helped clarify things or not :) But if it did and you still see a problem with my reasoning, please let me know! Daniel On Apr 27, 2006, at 2:39 PM, Justin C. Walker wrote:
|
_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/macnetworkprog/email@hidden This email sent to email@hidden
| References: | |
| >How to Implement Streamed HTTP Request (From: "Tommy Tian" <email@hidden>) | |
| >Re: How to Implement Streamed HTTP Request (From: Daniel Jalkut <email@hidden>) | |
| >Re: How to Implement Streamed HTTP Request (From: "Tommy Tian" <email@hidden>) | |
| >Re: How to Implement Streamed HTTP Request (From: Daniel Jalkut <email@hidden>) | |
| >Re: How to Implement Streamed HTTP Request (From: "Justin C. Walker" <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.