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.
16 years ago
Ryan
f213a27657
Refactor setTimeout to be a Timer object.
Timer now uses ObjectWrap. setTimeout, setInterval are now implemented in
javascript.
16 years ago
Ryan
064c8f0252
Use ObjectWrap base class for File, Socket, Server.
16 years ago
Ryan
cf1c58063e
Create a node namespace
Part of general reorganization.
16 years ago
Ryan
90fc8d3622
Update liboi. Use EV_MULTIPLICITY=0.
This might need to be changed in the future if ev is needed in thread pools
or extension libraries. However for now it makes sense to just use a single
loop.
16 years ago
Ryan
0ea7577a72
sign error on file position argument
16 years ago
Ryan
8a8e9df72e
wasn't sending pos arg for puts()
16 years ago
Ryan
0b1e3240be
add position arguments to File#read and File#write
16 years ago
Ryan
63ec0454d2
add echo test. remove debug printfs
16 years ago
Ryan
d996b59d9c
fix some errors/memleaks
16 years ago
Ryan
48b4ac4a8d
implment server.close
16 years ago
Ryan
c986b99ddc
throw error when given a bad arguement to socket.write
16 years ago
Ryan
3095861199
bug fix: recving raw data was incorrect.
16 years ago
Ryan
5f902a61e1
tcp server is accepting connections now.
(experiencing a problem with writing rawEncoding on the sockets. will fix in next commit.)
16 years ago
Ryan
822d7fa27e
add framework for tcp server. change eio stacksize to 16kb.
16 years ago
Ryan
140a032894
oops. call onConnect callback not onRead callback after connecting
16 years ago
Ryan
1542fc6a0b
add async dns for Socket
16 years ago
Ryan
707f244291
begin clean up of Socket
16 years ago
Ryan
d105d88625
on_load -> onLoad
16 years ago
Ryan
5d57fa5060
clean up timers a bit
16 years ago
Ryan
47fad676b4
Rename JS_ to NODE_ for method macros. add marcos to timers.cc
16 years ago
Ryan
a0f2b8a0c5
remove debug messages from module loading.
16 years ago
Ryan
408526a1c1
debugging/improving the module framework
16 years ago
Ryan
64117d9c94
small cleanups to the require structure
16 years ago
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.
16 years ago
Ryan
c2decd720f
add File.cat
16 years ago
Ryan
67af958f81
rename a few files to remove node_ prefix
16 years ago
Ryan
102c6399ac
rename NewFile to File::New
16 years ago
Ryan
e7dd20dc6e
add File.stat File.exists File.strerror
16 years ago
Ryan
5207226da3
fix a bug with eio polling.
16 years ago
Ryan
dd691decd2
file system methods to be queued.
16 years ago
Ryan
c8e20fbf81
add file.read only. raw encoding right now.
16 years ago
Ryan
12d31dd0b7
file operations are queued.
16 years ago
Ryan
e303d950d9
add stdout stderr global file objects. remove node.blocking.print
16 years ago
Ryan
c0b90ca763
only store fd in javascript (not in c++)
16 years ago
Ryan
470c6342cc
Change symantics of file.open. Now takes a callback argument.
16 years ago
Ryan
7e1350f6e4
add file.write()
16 years ago
Ryan
e8ce6ef790
add file open/close
16 years ago
Ryan
63a9cd3897
everything is changed. i've waited much too long to commit.
this is awful. i'm sorry for being so messy.
16 years ago
Ryan
0e9e927fcb
enable support for the thread pool
16 years ago
Ryan
1a126ed11c
use the WAF build system
16 years ago