• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSData downloaded over socket is bigger than it should be...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSData downloaded over socket is bigger than it should be...


  • Subject: Re: NSData downloaded over socket is bigger than it should be...
  • From: Jean-Nicolas Jolivet <email@hidden>
  • Date: Fri, 19 Dec 2008 15:32:37 -0500

Yup, someone already replied in private with that exact quote!....

Thanks a lot, this was exactly my problem! :)



On 19-Dec-08, at 3:27 PM, Andrew Farmer wrote:

On 19 Dec 08, at 10:24, Jean-Nicolas Jolivet wrote:
Well after comparing the data that I am receiving with the data that I SHOULD be receiving, it turns out that dots (yes, the dot character (.) ) are added all over the place in the data.... if I have 10 extra bytes, it means 10 extra dots were added to my data, so for example, a line that SHOULD read:

.m;{äMã≈P#ü1ˆTMë&L>ÆÖ-«∏4iˇ¯àÚPë‡gêæ¯Ø

Instead reads:
..m;{äMã≈P#ü1ˆTMë&L>ÆÖ-«∏4iˇ¯àÚPë‡gêæ¯Ø

Notice the extra dot at the beginning of the line... it turns out that ALL the extra dots that gets added are at the beginning of lines, when there is already a dot there....

RFC 977, section 2.4.1 states:

If the text contained a period as the first character of the text line in the original, that first period is doubled. Therefore, the client must examine the first character of each line received, and for those beginning with a period, determine either that this is the end of the text or whether to collapse the doubled period to a single one.

You'll need to check for and remove these characters yourself.

Jean-Nicolas Jolivet email@hidden http://www.silverscripting.com

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: NSData downloaded over socket is bigger than it should be... (From: Jean-Nicolas Jolivet <email@hidden>)
 >Re: NSData downloaded over socket is bigger than it should be... (From: Jean-Nicolas Jolivet <email@hidden>)
 >Re: NSData downloaded over socket is bigger than it should be... (From: Andrew Farmer <email@hidden>)

  • Prev by Date: Re: NSData downloaded over socket is bigger than it should be...
  • Next by Date: Re: NSData downloaded over socket is bigger than it should be...
  • Previous by thread: Re: NSData downloaded over socket is bigger than it should be...
  • Next by thread: CLLocationDistance contents?
  • Index(es):
    • Date
    • Thread