mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
356 B
13 lines
356 B
15 years ago
|
exports.createServer = function (on_connection, options) {
|
||
|
var server = new node.tcp.Server();
|
||
|
server.addListener("connection", on_connection);
|
||
|
//server.setOptions(options);
|
||
|
return server;
|
||
|
};
|
||
|
|
||
|
exports.createConnection = function (port, host) {
|
||
|
var connection = new node.tcp.Connection();
|
||
|
connection.connect(port, host);
|
||
|
return connection;
|
||
|
};
|