Guest
Hi,
I`m working on a C project and i should need to read from a socket and from the keyboard on asynchronous mode. I have used the function select because it watch a set of file descriptors. Using the macro FD_ISSET i know if a file descriptor is ready for being read and with the function read, i read it.
My problem is that, having something for reading from the socket, the program stops until i press a key. I don`t understand it!!!!!!!!!!!!!
Thanks!!!!!
I`m working on a C project and i should need to read from a socket and from the keyboard on asynchronous mode. I have used the function select because it watch a set of file descriptors. Using the macro FD_ISSET i know if a file descriptor is ready for being read and with the function read, i read it.
My problem is that, having something for reading from the socket, the program stops until i press a key. I don`t understand it!!!!!!!!!!!!!
Thanks!!!!!