Add namespace structure

This commit is contained in:
Roy Hyunjin Han 2015-02-18 13:38:16 -05:00
commit 98c5ecea7f
2 changed files with 199 additions and 90 deletions

View file

@ -23,8 +23,11 @@ var server = require('http').createServer(function(req, res) {
function print_body(header, body) {
var text = String(body);
console.log(header + text);
if (text.charCodeAt(0) != 0) return;
for (var i = 0; i < text.length; i++) {
console.log('body[%s] = %s = %s', i, text[i], text.charCodeAt(i));
var character_code = text.charCodeAt(i);
console.log('body[%s] = %s = %s', i, text[i], character_code);
if (character_code == 65533) break;
}
}
server.listen(8000);