Skip to content

Commit

Permalink
tidy doc
Browse files Browse the repository at this point in the history
  • Loading branch information
apb2006 committed Sep 30, 2011
1 parent e8551f2 commit ff67efd
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
11 changes: 6 additions & 5 deletions README.md
@@ -1,11 +1,12 @@
basex - a node.js Basex client
===========================

This is BaseX client for node.js.
BaseX is an XML database http://basex.org/
High-performance database storage with text, attribute, full-text and path indexes.
Efficient support of the W3C XPath/XQuery Recommendations and Full Text and Update Extensions.
Currently minimal functionality.
This is BaseX client for node.js. Currently this client has minimal functionality.
(BaseX)[http://basex.org/] is an XML database.
* High-performance database storage with text, attribute, full-text and path indexes.
* Efficient support of the W3C XPath/XQuery Recommendations
* Full Text search and Update Extensions.


## Installing BaseX
1. Download from http://basex.org/products/download/all-downloads/
Expand Down
16 changes: 16 additions & 0 deletions index.js
Expand Up @@ -8,6 +8,7 @@ var net = require("net")
, events = require("events")
, crypto = require("crypto")
, assert = require('assert')
, Queue = require("./lib/queue").Queue
;

var states = {
Expand All @@ -26,6 +27,17 @@ var BaseXStream = function(port, host, username,password) {
this.host=host||"127.0.0.1";
this.username=username||"admin";
this.password=password||"admin";
this.connections = 0;
this.attempts = 1;
this.command_queue = new Queue(); // holds sent commands to de-pipeline
// them
this.offline_queue = new Queue(); // holds commands issued but not able to
// be sent
this.commands_sent = 0;
this.retry_delay = 250;
this.retry_backoff = 1.7;
this.subscriptions = false;

var stream;
try{
stream = net.createConnection(this.port, this.host);
Expand Down Expand Up @@ -123,5 +135,9 @@ function loginresponse(timestamp, password) {
return p2;
};

function md5(str){
return crypto.createHash('md5').update(str).digest("hex");
};

util.inherits(BaseXStream, events.EventEmitter);
exports.BaseXStream = BaseXStream;
4 changes: 2 additions & 2 deletions package.json
@@ -1,7 +1,7 @@
{ "name" : "basex",
"version" : "0.0.0",
"version" : "0.1.0",
"description" : "BaseX client library",
"author": "Andy Bunce <bunce.andy@gmail.com>",
"author": "Andy Bunce ",
"contributors": [
"Andy Bunce",
"
Expand Down

0 comments on commit ff67efd

Please sign in to comment.