Wrap response socket for platform compatibility.
Renamed wrapper.
Merge pull request #316 from Precis/socket_wrapper

Wrap response socket for platform compatibility.