Hi Bas Verhoeven , Thanks for your reply. > I believe the problem was that select() does not work on file > descriptors on Windows, as it does on *NIX systems. Yes, that's right. But is there any way to fix it? Thanks, Shiqing