'\n' -> "\r\n"

This commit is contained in:
Trustin Lee 2009-12-24 03:18:00 +00:00
parent 3ff8cd46c9
commit 437cc0211c
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ public class SecureChatClient {
} }
// Sends the received line to the server. // Sends the received line to the server.
lastWriteFuture = channel.write(line + '\r' + '\n'); lastWriteFuture = channel.write(line + "\r\n");
// If user typed the 'bye' command, wait until the server closes // If user typed the 'bye' command, wait until the server closes
// the connection. // the connection.

View File

@ -78,7 +78,7 @@ public class TelnetClient {
} }
// Sends the received line to the server. // Sends the received line to the server.
lastWriteFuture = channel.write(line + '\n'); lastWriteFuture = channel.write(line + "\r\n");
// If user typed the 'bye' command, wait until the server closes // If user typed the 'bye' command, wait until the server closes
// the connection. // the connection.