nanomsg/nanomsg — pull request #180 by cheme (2013-11-06 09:53:55+00:00)
Title: Small patch on error for socket creation

Hello,
a little something about socket creation error, mostly related to my interpretation of the documentation (might not be right).
EAFNOSUPPORT label being : "Address family not supported by protocol".
I think that, raw socket being part of a protocol and not another protocol, EAFNOSUPPORT error is more correct that EINVAL when protocol does not support raw address family.
This patch is MIT licensed.