Made some minor changes to make the socket code more robust.
Made some minor changes to make the socket code more robust.

csuideal/log4cplus,hunter-packages/log4cplus,csuideal/log4cplus,hunter-packages/log4cplus,hunter-packages/log4cplus,csuideal/log4cplus,ccpaging/log4cplus,csuideal/log4cplus,ccpaging/log4cplus,ccpaging/log4cplus,hunter-packages/log4cplus,ccpaging/log4cplus