🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Russell Schulz Mon, 30 Mar 1998 00:00
Re: NNTP commands fail to get response from server
#27315
Author: Russell Schulz
Date: Mon, 30 Mar 1998 00:00
12 lines
1212 bytes
fluffy@meow.org (Fluffy) writes:

> You're terminating your commands with a CRLF and not just one or the
> other, right?  It pretty common for people to forget about the
> linefeed.

or to use \r\n (instead of the \015\012 the RFCs require).
-- 
Russell_Schulz@locutus.ofB.ORG  Shad 86c

Re: NNTP commands fail to get response from server
#27312
Author: Bjoern Frantzen
Date: Mon, 30 Mar 1998 00:00
16 lines
1194 bytes
Russell Schulz <Russell_Schulz@locutus.ofB.ORG> wrote:
>fluffy@meow.org (Fluffy) writes:
>
>> You're terminating your commands with a CRLF and not just one or the
>> other, right?  It pretty common for people to forget about the
>> linefeed.
>or to use \r\n (instead of the \015\012 the RFCs require).

And you can explain the difference between '\r' and '\015' (or '0x0D' for
the matter)?

-- 
        Bjoern Frantzen      - bjoff@bgnett.no

Re: NNTP commands fail to get response from server
#27340
Author: Fluffy
Date: Tue, 31 Mar 1998 00:00
17 lines
1459 bytes
Bjoern Frantzen <bjoff@bgnett.no> wrote:
: Russell Schulz <Russell_Schulz@locutus.ofB.ORG> wrote:
: >or to use \r\n (instead of the \015\012 the RFCs require).
: 
: And you can explain the difference between '\r' and '\015' (or '0x0D' for
: the matter)?

Some compilers try to "help" by redefining their default values to what
the native OS uses.  \r and \n are swapped on some Mac C compilers,
while some on Microsoft platforms change \n to a CRLF pair.

This kind of goofiness supposedly shouldn't happen in Java, but it
doesn't hurt to define the values yourself and be sure weird
redefinitions don't get in the way.

\r\n vs. \015\012 (was Re: NNTP commands fail to get response from server)
#27353
Author: Russell Schulz
Date: Wed, 01 Apr 1998 00:00
14 lines
1382 bytes
bjoff@bgnett.no (Bjoern Frantzen) writes:

>> or to use \r\n (instead of the \015\012 the RFCs require).
>
> And you can explain the difference between '\r' and '\015' (or
> '0x0D' for the matter)?

\n is the local end-of-line character.  this changes.  \015 and \x0D
are 13, the CR required by the RFC.  in ASCII, this does not change.
-- 
Russell_Schulz@locutus.ofB.ORG  Shad 86c

Re: NNTP commands fail to get response from server
#27384
Author: Bjoern Frantzen
Date: Wed, 01 Apr 1998 00:00
18 lines
1429 bytes
Fluffy <fluffy@meow.org> wrote:
>Bjoern Frantzen <bjoff@bgnett.no> wrote:
>: And you can explain the difference between '\r' and '\015' (or '0x0D' for
>: the matter)?
>Some compilers try to "help" by redefining their default values to what
>the native OS uses.  \r and \n are swapped on some Mac C compilers,
>while some on Microsoft platforms change \n to a CRLF pair.

I see now, I was too much thinking of the \r, that I didn't consider the
obvious CRLF that dos (and derivates) uses when you issue a \n.

I will try to think before posting next time.. ;-)

-- 
        Bjoern Frantzen      - bjoff@bgnett.no

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads