FROM : Brady Duga
DATE : Sun Jan 13 02:51:48 2008
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
DATE : Sun Jan 13 02:51:48 2008
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
| Related mails | Author | Date |
|---|---|---|
| Development | Jan 13, 00:24 | |
| Development | Jan 13, 02:16 | |
| Andrew Farmer | Jan 13, 02:36 | |
| Brady Duga | Jan 13, 02:51 | |
| Keary Suska | Jan 13, 18:15 | |
| Development | Jan 13, 20:19 | |
| Development | Jan 13, 23:41 | |
| Andrew Farmer | Jan 14, 00:12 | |
| Ryan Homer | Jan 14, 14:28 |






Cocoa mail archive

