mirror of https://github.com/lukechilds/node.git
Ryan
16 years ago
3 changed files with 0 additions and 95 deletions
@ -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 |
@ -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(); |
|||
*/ |
@ -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"); |
Loading…
Reference in new issue