Ryan
30450388d6
update oi_socket - modify node code to match
2009-05-05 12:52:18 +02:00
Ryan
09c2ae5c3e
Slight change in tcp connection constructor
...
For server-side sockets, no longer pass the server object to the
js constructor. This is set later with SetAcceptor.
I think the change is a bit strage and convoluted but it allows one give
protocol /classes/ to the c++ constructors instead of protocol instances.
This is nice because derived classes (like HTTP) don't need to copy the
protocol instanciation code.
2009-05-04 12:08:13 +02:00
Ryan
5a071ad72f
Begin refactor of http.cc. Remove libebb add http_parser.
...
And most of http.cc was deleted.
2009-05-03 14:09:16 +02:00
Ryan
bb6057d9ad
rename Connection.disconnect -> Connection.close
2009-05-03 01:11:39 +02:00
Ryan
1713386580
add Connection::SendEOF. modify test accordingly.
2009-05-03 01:01:42 +02:00
Ryan
15d24d8002
Major refactor of network code
...
Here I massively change both the external and internal API of the TCP
sockets and servers.
This change introduces the concept of a protocol object like is found in
Twisted Python. I believe this allows for a much cleaner description of how
a socket behaves. What was once a single object "client" or "connection" is
now represented by two objects: a "connection" and a "protocol".
Well - I don't want to ramble too much because neither API is yet public or
documented. Look the diff of test/test-pingpong.js to see how things have
changed.
2009-05-02 16:34:24 +02:00
Ryan
3886e183fd
Add test for setInterval
2009-04-29 14:12:24 +02:00
Ryan
0f5170339c
remove process.{cc,h} process.exit() now exit()
...
the process object might return in the future but for now it is going away.
2009-04-29 11:09:32 +02:00
Ryan
cf1c58063e
Create a node namespace
...
Part of general reorganization.
2009-04-28 23:09:56 +02:00
Ryan
f17ecf20be
change localhost to 127.0.0.1 because macs suck
2009-04-23 19:04:01 +02:00
Ryan
a4593e3ebd
WAF: fix the debug variant.
...
problem is they both build by default. need a way to disable the debug variant.
2009-04-23 13:18:38 +02:00
Ryan
8514e0627a
improved ping pong test.
2009-04-23 01:14:11 +02:00
Ryan
e6d96e8e66
rename echoserver -> pingpong
2009-04-22 16:05:14 +02:00
Ryan
f3f9a08de1
beef up the echoserver test
2009-04-22 16:04:05 +02:00
Ryan
63ec0454d2
add echo test. remove debug printfs
2009-04-22 15:52:23 +02:00
Ryan
d105d88625
on_load -> onLoad
2009-04-21 16:30:47 +02:00
Ryan
5d57fa5060
clean up timers a bit
2009-04-21 16:24:56 +02:00
Ryan
a0f2b8a0c5
remove debug messages from module loading.
2009-04-21 14:38:55 +02:00
Ryan
408526a1c1
debugging/improving the module framework
2009-04-21 13:52:21 +02:00
Ryan
f5b2a8f072
remove old test files
2009-04-20 18:48:25 +02:00
Ryan
7baacb56a9
ensure socket closure in very old test scripts
2009-04-20 18:46:09 +02:00
Ryan
93f7f0dca0
reimplement module loading
...
still missing several important features and its mostly untested but the script
test/test-test.js is working and thats enough for now.
2009-04-20 02:55:08 +02:00
Ryan
e7dd20dc6e
add File.stat File.exists File.strerror
2009-04-18 10:58:41 +02:00
Ryan
dd691decd2
file system methods to be queued.
2009-04-17 18:54:29 +02:00
Ryan
c8e20fbf81
add file.read only. raw encoding right now.
2009-04-16 21:05:41 +02:00
Ryan
e303d950d9
add stdout stderr global file objects. remove node.blocking.print
2009-04-16 13:58:10 +02:00
Ryan
c0b90ca763
only store fd in javascript (not in c++)
2009-04-16 13:42:34 +02:00
Ryan
470c6342cc
Change symantics of file.open. Now takes a callback argument.
2009-04-16 13:20:35 +02:00
Ryan
7e1350f6e4
add file.write()
2009-04-16 11:37:44 +02:00
Ryan
63a9cd3897
everything is changed. i've waited much too long to commit.
...
this is awful. i'm sorry for being so messy.
2009-04-15 10:08:28 +02:00
Ryan
1e5de42a75
allow null host parameter to listen on localhost
2009-03-13 12:22:35 +01:00
Ryan
a8ac42384d
change HTTPServer constructor. Now: HTTPServer(host, port, onrequest);
2009-03-09 14:09:09 +01:00
Ryan
b4985d1a6e
working towards working keep-alive. need tests
2009-03-06 19:49:52 +01:00
Ryan
db618cb708
add minimal amount about HTTPServer to spec
2009-03-05 14:36:19 +01:00
Ryan
ab248e8422
add test/test_clearTimeout.rb
2009-03-04 12:04:04 +01:00
Ryan
8b71ba5e68
add test_setTimeout
...
Had to disable Init_tcp because it starts an oi_async thread pool and
prevents the node loop from exiting when no watchers remain. Not sure how
to deal with this problem in general because eventually we'll need the
thread pool.
2009-03-04 11:54:20 +01:00
Ryan
9e5eff3b27
add test/test_http_server_echo and 'make test'
2009-03-04 11:35:43 +01:00