Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Select C Function: Reading from a socket

Status
Not open for further replies.

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!!!!!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor