node/lib/tcp.js

12 lines
296 B
JavaScript
Raw Normal View History

2010-03-20 12:22:11 +08:00
var net = require('net');
var sys = require('sys');
2010-03-16 04:48:03 +08:00
2010-03-20 12:22:11 +08:00
var warning;
if (!warning) {
warning = "The 'tcp' module is now called 'net'. Otherwise it should have a similar interface.";
sys.error(warning);
2009-11-22 10:58:08 +08:00
}
2010-03-20 12:22:11 +08:00
exports.createServer = net.createServer;
exports.createConnection = net.createConnection;