Ask your own question, for FREE!
Computer Science 18 Online
OpenStudy (anonymous):

in the c language: i'm trying to implement a timeout in some code to detect it getting stuck waiting for a return value. the only problem is, when the code gets stuck, the rest of my code is stuck (including the timer). any suggestions? (btw im currently trying to use select(), but the code is getting stuck on the select value: int retval = select(sock+1, &readFd, NULL, NULL, &timeout);)

OpenStudy (anonymous):

nevermind, got it :D

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!