Erm, you use select(), and you post some kind of attempt at using select() so we can figure out where you went wrong.
Saying which OS and compiler you're using would be a good idea as well.
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Offline 7,164 posts
since Dec 2005