net: add lookup option to Socket.prototype.connect
authorEvan Lucas <evanlucas@me.com>
Wed, 22 Apr 2015 22:05:29 +0000 (17:05 -0500)
committerEvan Lucas <evanlucas@me.com>
Fri, 24 Apr 2015 12:53:16 +0000 (07:53 -0500)
commit4abe2fa1cfcc434952570c1c979dd4ce150fba67
tree38ff3f63ca1e507928d85c6f1be296f363a46b05
parent1bef71747678c19c7214048de5b9e3848889248d
net: add lookup option to Socket.prototype.connect

Allows customization of the lookup function used when
Socket.prototype.connect is called using a hostname.

PR-URL: https://github.com/iojs/io.js/pull/1505
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
Reviewed-By: Yosuke Furukawa <yosuke.furukawa@gmail.com>
doc/api/net.markdown
lib/net.js
test/parallel/test-net-dns-custom-lookup.js [new file with mode: 0644]