[Nickle] [RFC] Socket::create: Add support for Unix domain sockets
cworth at cworth.org
Wed Feb 6 09:05:02 PST 2008
On Fri, 01 Feb 2008 19:22:25 -0800, Bart Massey wrote:
> Yeah, just make this patch be for _create and do all the
> varargs magic in Nickle. Thanks for the patch!
So here's my extended version. It adds some varargs support so that
the address family can be omitted, (defaulting to AF_INET), which
is much better than my previous patch since this won't break existing
code. It also doesn't move to an enum for the stream type to avoid
breaking existing code.
It also then goes on to provide a varargs bind and connect so that when
using AF_UNIX one does not have to pass a useless hostname argument.
This is a complete series suitable for applying as is, (it replaces my
previous patch). I still didn't get as far as adding a test case yet.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 0 bytes
Desc: not available
Url : /pipermail/nickle/attachments/20080206/119f9bfd/attachment-0001.obj
More information about the Nickle