0.0.1 • Published 13 years ago

netpool v0.0.1

Weekly downloads
6
License
-
Repository
github
Last release
13 years ago

This module is a tcp pool for nodejs

Install

Just move the lib directory or the pool.js in to your node_modules

Simple Usage:

var config = {port : 22222, host : '127.0.0.1', minsize : 1, maxsize : 2, callback : main};
var pool = poolmodule.pool(config);
pool.get_connection(function(connect){
     var carry = carrier.carry(connect);
     carry.on('line', function doline(line){
       pool.release(carry.reader);
     });
     connect.write("aaaa\n");
});

See the bench.js in test directory.

0.0.1

13 years ago