Women in Technology

Hear us Roar



Article:
  Untwisting Python Network Programming
Subject:   Newline
Date:   2006-09-15 02:03:10
From:   Cees_ORLY
Note that the Apache James mail server expects a trailing carriage return in the string from the Telnet client, so the example appends "\n" to the end of the parameter to write.


I think you meant "newline" instead of "carriage return" (which is "\r").

Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • Newline
    2006-09-15 08:57:54  Kendrew [View]

    Yes. Cees_ORLY.

    In fact, the line terminator can be either a newline or a carriage return or a carriage return followed immediately by a newline, as James' RemoteManager uses java.io.BufferedReader#readLine to read from the socket.