FROM : Ryan Homer
DATE : Mon Jan 14 14:28:08 2008
Do you need to send \r? If so, send it before \n, i.e. send \r\n, not
\n\r
On 12-Jan-08, at 8: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? Either way this seems to be unique to NSStream as
> other tools I've used require only the \r. When using NSStream it
> seems that for anything but http it requires both a \r and character
> 10. (\n didn't work and neither did the character by itself.)
> I discovered that with every server, the final character of each
> welcome message was ascii character 10 preceded by character 13 so I
> tried it and it worked.
>
> I suppose I'm hoping some one can explain this to me. Even though it
> is working I do not understand why and would be grateful if some one
> could clarify.
DATE : Mon Jan 14 14:28:08 2008
Do you need to send \r? If so, send it before \n, i.e. send \r\n, not
\n\r
On 12-Jan-08, at 8: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? Either way this seems to be unique to NSStream as
> other tools I've used require only the \r. When using NSStream it
> seems that for anything but http it requires both a \r and character
> 10. (\n didn't work and neither did the character by itself.)
> I discovered that with every server, the final character of each
> welcome message was ascii character 10 preceded by character 13 so I
> tried it and it worked.
>
> I suppose I'm hoping some one can explain this to me. Even though it
> is working I do not understand why and would be grateful if some one
> could clarify.
| 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

