Original Post
I'm not sure if this should be in game programming or in network programming. It's asking more for advice on game programming then it is with network programming, so I posted here. I'm creating a socket dll for a game I'm making and I need the socket not to block while I'm waiting for it to receive. I already know how to use select(), but I'm thinking I should probably use a thread for this situation. I already have the server coded to use select. I thought it would be better for the server to use select since it will be dealing with a lot of sockets. I figure it would be better to use a thread for the client since they will only have one socket. What are your thoughts on weather I should use a separate thread or just use select()? And can you give a reason why you feel its better to use a thread or select()? If you think I should use a thread, do you know of any good place to learn how to use threads? Thank you for your time.