Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9257917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:15:56+00:00 2026-06-18T12:15:56+00:00

CFStreamCreateBoundPair is writing 4kb data to stream and stream will parser the data which

  • 0

CFStreamCreateBoundPair is writing 4kb data to stream and stream will parser the data which contains start node of xml and it doesnt contain end node.how to write the code and manage the code so that we are writing correct xml data to nsoutputstream.

CFStreamCreateBoundPair(NULL, (CFReadStreamRef *)&iStream, (CFWriteStreamRef *)&oStream,4096);

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T12:15:56+00:00Added an answer on June 18, 2026 at 12:15 pm

    The bound stream pair works such that you can write in chunks into the write stream and something else can read in chunks from the read stream. You’ve set transferBufferSize to 4096 here. This indicates that the data will be moved from the write stream to the read stream in chunks of 4096 bytes (4K). If your source data is >4K but <8K in length, that would explain why you’re only getting the first 4K of it. If, say, your data is 6K long, then the first 4K will be sent to the read stream, then the next 2K will be queued up, but my understanding is that it will sit waiting in a buffer until one of two things happen:

    1. Enough data arrives to complete a second 4K block.
    2. The write stream is closed.

    So if 6K is all you’re ever going to write to the write stream, then you need to close the write stream with CFWriteStreamClose(oStream); in order for the last 2K to be sent to the read stream. Otherwise, my expectation would be that it would just sit there forever.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Update: When using NSXMLParser class method initWithContentsOfURL , rather than parsing as the XML
I want to send a large amount of data to a server using NSURLConnection

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.