1
0
Fork 0
mirror of https://github.com/actions/setup-python.git synced 2024-11-23 17:17:36 +00:00
setup-python/node_modules/pn/net.js
Danny McCormick 39c08a0eaa Initial pass
2019-06-26 21:12:00 -04:00

17 lines
No EOL
834 B
JavaScript

var net = require("net");
var promisify = require("./_promisify.js");
var bind = function(c, f) { return f && f.bind(c); };
Object.defineProperties(module.exports, {
Server: { enumerable: true, value: net.Server },
Socket: { enumerable: true, value: net.Socket },
Stream: { enumerable: true, value: net.Stream },
//_createServerHandle: // skipping
//_normalizeArgs: // skipping
//_setSimultaneousAccepts: // skipping
connect: { enumerable: true, value: bind(net, net.connect) },
createConnection: { enumerable: true, value: bind(net, net.createConnection) },
createServer: { enumerable: true, value: bind(net, net.createServer) },
isIP: { enumerable: true, value: bind(net, net.isIP) },
isIPv4: { enumerable: true, value: bind(net, net.isIPv4) },
isIPv6: { enumerable: true, value: bind(net, net.isIPv6) },
});