Socket communication enhancements for mac platform.