Add support for Unix sockets

Patch originally by Dag-Erling Smørgrav for University of Oslo.
6 files changed