• 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: "email@hidden" <email@hidden>
  • Date: Fri, 19 Dec 2008 20:31:07 +0000


On 19 Dec 2008, at 18:43, Jean-Nicolas Jolivet wrote:

I am indeed using NNTP, but really I'm not even looking at cr+lf etc...

Basically I'm sending the following command to retrieve a message:
"ARTICLE <message-id>\r\n"

Then I'm reading all the data up until \r\n.\r\n is found.... (that is, a new line, a dot, and a new line again) which marks the end of an email.... and I'm saving that data to the disk

mmm, now that I say it like that though.... a dot on a newline marks the end of a message... and my problem is that I have dot inserted on new lines? can't be a coincidence!... but then again, I'm using AsyncSocket's "readToData" function... so I don't have much control over that...

As you have access to the source you have as much control over it as anyone else has!
The data checking termination code is in AsyncSocket.m - (void)doBytesAvailable.
A bit of diligent poking in there might help.




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

Jonathan Mitchell

Central Conscious Unit
http://www.mugginsoft.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: glenn andreas <email@hidden>)
 >Re: NSData downloaded over socket is bigger than it should be... (From: Jean-Nicolas Jolivet <email@hidden>)

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