This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* vim: set expandtab tabstop=2 shiftwidth=2 foldmethod=marker: */ | |
"use strict"; | |
var listen = function (port, onconnection) { | |
var res = new (process.binding('tcp_wrap').TCP); | |
res.onconnection = onconnection; | |
res.bind('0.0.0.0', port); | |
res.listen(128); | |
return res; |