Refactored unixsocket to conform to io.Reader.