Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select C Function: Synchronous Multiplexing I/O

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
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!!!!!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top