• 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: Trying to use NSStream
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to use NSStream


  • Subject: Re: Trying to use NSStream
  • From: Development <email@hidden>
  • Date: Sun, 13 Jan 2008 12:19:50 -0700

Well the only think I can think then is that I did not type \r\n but must have instead typed \n\r which would of course be wrong.

P.S. Thank you to every one who responded, things are clearer now.

On Jan 12, 2008, at 6:51 PM, Brady Duga wrote:

On Jan 12, 2008, at 5:16 PM, Development wrote:

Ok... Did any one else get the memo that the EOL character had been changed to the char(10).
Every document I've read and all information I have seen tells me that I suffix every line I send to a server with either \n or \r or \n\r or some other such combination. Either way... I have never had to do sendString = [NSString stringWithFormat:@"%@\r%c",aString, 10]; I do not know what Char 10 is however I am assuming it is an EOL or EOF character?

10 (0x0A) is a newline. 'man ascii' when in doubt. It is the same as "\n". Almost all text-based network protocols require lines to end in a carriage-return/newline pair. So "Foo\r\n".


--Brady
_______________________________________________

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

_______________________________________________

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


  • Follow-Ups:
    • Re: Trying to use NSStream -another question
      • From: Development <email@hidden>
References: 
 >Trying to use NSStream (From: Development <email@hidden>)
 >Re: Trying to use NSStream (From: Development <email@hidden>)
 >Re: Trying to use NSStream (From: Brady Duga <email@hidden>)

  • Prev by Date: Re: beyond MV and (one) C
  • Next by Date: Re: Private Frameworks
  • Previous by thread: Re: Trying to use NSStream
  • Next by thread: Re: Trying to use NSStream -another question
  • Index(es):
    • Date
    • Thread