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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Timeout function

Status
Not open for further replies.

jlynch1

Technical User
Dec 20, 2001
100
IE
Are there any other c timeout functions for use in linux other than the select function for sockets programming.

I cant seem to set the timeout value less than 5 milli seconds or 5000 microseconds.
select(0,NULL,NULL,NULL,&delay_val)

Are there any changes I could make to the operating system to remedy this. I am using red hat linux v7.3.

 
You could call [tt]ioctl[/tt] to see if there is any input available. I don't remember the exact syntax used, but it was posted in this forum a month or two ago. The person posting it could probably post it again ;-) //Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top