Removed duplicate socket initialization and corrected timeout values.

I don't have any significant experience with sockets on Linux/Mac, so it's entirely possible that I'm overlooking a valid reason why the code is correct as is. If that's the case, I think a couple comments explaining why would be warranted.
Two things in particular confused me about this one. First, wow that's a short timeout. Second, I read `msTimeOut` as "millisecond timeout". Renaming that variable to `usTimeOut` (or getting rid of it entirely) would have made things clear in my mind.