title: How to use non-blocking sockets with multiple threads?
body: <p>I have read that working with more than 64 sockets in a thread is dangerous(?). But -at least for me- Non-blocking sockets are used for avoiding complicated thread things. Since there is only one listener socket, how am i supposed to split sockets into threads and use them with select() ? Should i create fd_sets for each thread or what ?  And how am i supposed to assign a client to a thread, since I can only pass values in the beginning with CreateThread() ?</p>