Nonblocking stdin on telnet

Andrei Chichak groups at chichak.ca
Wed Jul 7 15:57:48 UTC 2010


Well that was interesting. What I had almost worked. The difference was:

tcsetattr (STDIN_FILENO, TCSANOW, &newt);

versus

>  int fd = fileno(in);
>    tcsetattr(fd, TCSANOW, &newt); 


STDIN_FILENO has a value of 0, whereas fileno(stdin) has a value of 9.

Thanks for all your help,
Andrei

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20100707/2a4c2b0e/attachment-0001.html>


More information about the users mailing list