Re: line feed and carriage return
- From: Mark Space <markspace@xxxxxxxxxxxxxx>
- Date: Thu, 28 Feb 2008 10:04:30 -0800
Gordon Beaton wrote:
On Wed, 27 Feb 2008 21:06:40 GMT, Mark Space wrote:That maybe correct. However, I thought it was normally the client that
was configurable. The server sends what it wants. The client decides
whether it should send CRLF or LF based on the user's preferences.
I don't think there are any established protocols that actually define
I don't think there are either. I just recalled that Telnet did it one way, and suggested that also might be appropriate.
Well, for Telnet, I think there really is an established protocol, as well as a POSIX standard. But that's different issue. The OP can come up with what works best for him. "Works like Telnet" is not a standard.
Thinking about this a bit more, if the server is extended to compensate for any locale, that could be a lot of resources required on the server which may have many connections. If the server implements one standard, and each client translates to it's own locale, that seems easier to me, and also taxes the server much less. Just a couple of nickels....
things that way (and why should the user have any preferences in this.
specific matter, except that it should work as advertised). Usually
the grammar is pretty specific about what consitutes a line.
However there is certainly no harm in applying the robustness
principle at both ends of every connection: be conservative in what
you do, be liberal in what you accept from others.
- References:
- line feed and carriage return
- From: belletti . stefano
- Re: line feed and carriage return
- From: Gordon Beaton
- Re: line feed and carriage return
- From: Mark Space
- Re: line feed and carriage return
- From: Gordon Beaton
- line feed and carriage return
- Prev by Date: Socket with setSoTimeout() never times out
- Next by Date: Re: displaying prompts and reading user input question
- Previous by thread: Re: line feed and carriage return
- Next by thread: Handling private jtextfields
- Index(es):
Relevant Pages
|
|