Quote:
Originariamente inviato da PGI
il server news č esigente quanto al carattere terminatore.
Per risolvere, questo:
Codice:
os.writeBytes(userInput + '\n');
diventa:
Codice:
os.writeBytes(userInput + '\r' + '\n');
os.flush();
Ciao.
|
come mai l'uso di \r č necessario?