Add 'type' parameter to net.Server.listenFD()
authorPeter Griess <pg@std.in>
Wed, 9 Jun 2010 01:09:17 +0000 (18:09 -0700)
committerRyan Dahl <ry@tinyclouds.org>
Wed, 9 Jun 2010 01:09:17 +0000 (18:09 -0700)
commitde6d663a67dcec8b482e069d967ef4d1a3743c9b
tree6b4853e9c92e0cbf3afdc8e86abc37a52294641e
parentbca16a0581ba6f9b95e2a8669def8a40a097f51f
Add 'type' parameter to net.Server.listenFD()

This is needed in case the provided socket is not the default 'tcp4' type
(i.e. and needs different read/write/etc methods). With this patch, one can
call listenFD(sock, 'unix') to bind to existing UNIX domain sockets.
lib/net.js