From 844f923825cc8d548127fbc4fb77d93c5584749d Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 16 Apr 2009 13:20:02 +0200 Subject: [PATCH] remove some old files --- TODO | 43 ------------------------------------------- http_api.js | 25 ------------------------- tcp_example.js | 27 --------------------------- 3 files changed, 95 deletions(-) delete mode 100644 TODO delete mode 100644 http_api.js delete mode 100644 tcp_example.js diff --git a/TODO b/TODO deleted file mode 100644 index d3b4a9137c..0000000000 --- a/TODO +++ /dev/null @@ -1,43 +0,0 @@ -- ByteArray/Blob - - slice - - unpack - - toJSON = toString = unpack("U*") - -- change build system to scons. - -- ARGV - -- jslint integration. compile it into the node binary and run it - automatically on each execution. - -- signal handlers. - - Signals.onHUP = function () { - ... - }; - -- stdin, stdout, stderr. Accessing these with read()/write() blocks. - They cannot be select()ed. They are always readable. Thus all access - to them needs to be done in a thread pool. (E.G. oi_file_open_stdin()) - -- some sort of module loading mechanism. Would be nice if it was structured - like rubygems. - - -STANDARD LIBRARY MODULES - -- DNS look up (thru http://25thandclement.com/~william/projects/dns.c.html) - -- File (thru oi_file?) - -- AMQP (thru 0mq?) - -- Postgres (thru libpq-async http://www.postgresql.org/docs/8.3/interactive/libpq-async.html) - -- Memcached (can be implemented in pure js?) - -- Redis (can be implemented in pure js?) - -- TCPServer - -- HTTPClient diff --git a/http_api.js b/http_api.js deleted file mode 100644 index 7eb80eb3ee..0000000000 --- a/http_api.js +++ /dev/null @@ -1,25 +0,0 @@ -function encode(data) { - var chunk = data.toString(); - return chunk.length.toString(16) + "\r\n" + chunk + "\r\n"; -} - -var port = 8000; -var server = new HTTPServer("localhost", port); - -server.onrequest = function (request) { - log("path: " + request.path); - log("query string: " + request.query_string); - - request.respond("HTTP/1.1 200 OK\r\n"); - request.respond("Content-Length: 0\r\n"); - request.respond("\r\n"); - request.respond(null); -}; - - -log("Running at http://localhost:" + port + "/"); - - -/* -server.close(); -*/ diff --git a/tcp_example.js b/tcp_example.js deleted file mode 100644 index 37e56a0c8b..0000000000 --- a/tcp_example.js +++ /dev/null @@ -1,27 +0,0 @@ -client = new TCPClient("google.com", 80); - -log("readyState: " + client.readyState); -//assertEqual(client.readystate, TCP.CONNECTING); - -client.onopen = function () { - log("connected to google"); - log("readyState: " + client.readyState); - client.write("GET / HTTP/1.1\r\n\r\n"); -}; - -client.onread = function (chunk) { - log(chunk); -}; - -client.onclose = function () { - log("connection closed"); -}; - - - -setTimeout(function () { - client.disconnect(); -}, 10 * 1000); - - -log("hello");