Fixed previous mistakes with unix socket code.
Extract the unix socket code from opennet() into a distinct openunix().