Streakz,
I think you have that the wrong way around.
Instead of listening for five seconds I think you should do what it says in the documentation: Use non-blocking I/O and, wait for a couple of seconds and then try again.
Mike
To err is human,
but to really foul things up -
you require a man Mike.
Want to get great answers to your Tek-Tips questions? Have a look at faq219-2884