Bug fixing. First functional version

This commit is contained in:
2014-11-03 01:21:52 +01:00
parent e59a3df7f4
commit ddc9d67128
6 changed files with 142 additions and 74 deletions

29
bin/test-server.js Normal file
View File

@@ -0,0 +1,29 @@
var server = require("../lib/server.js");
var event = require("../lib/event.js");
server.createServer(3219, "127.0.0.1", function (password) {
"use strict";
return true;
}, function (controler) {
"use strict";
console.log("Connected");
console.log("Ready to serve");
process.stdin.on("data", function(data) {
if (data.toString() !== "exit"){
eval(data.toString());
}
else {
controler.detach();
}
});
});