Anonymous - 2001-02-04

hi,
here is my second problem!
i have written a network server based on the tcpthread demo. one should be able to login as one can to a telnet host. therefore i have to hide the password.

i've written the following code:

-------------------
  tcgetattr(0, &attribute);     // get attributes
  attribute.c_lflag &= ~(ECHO); // unset the ECHO-Flag
  tcsetattr(0, TCSAFLUSH, &attribute); // set attributes
  *(user->tcpstream) << "Password: "<< flush;
  netget(user->tcpstream,password);
  attribute.c_lflag |= ECHO;
  tcsetattr(0, TCSANOW, &attribute);
--------------------

netget is basically a getline but if the client is a windows client the '\r'-char is removed.

using the linux telnet and netcat client it does not work. i can see what i type in.
using windows i have to switch on local echo in order to see what i type everywhere.

how do I have to write the server if i do not want to enable local echo?? [or how do i hide the password]

please help! thx in advance!
pilux