Add "had_error" argument to the "onDisconnect" in node.tcp.Client
authorRyan <ry@tinyclouds.org>
Thu, 4 Jun 2009 10:31:45 +0000 (12:31 +0200)
committerRyan <ry@tinyclouds.org>
Thu, 4 Jun 2009 10:33:19 +0000 (12:33 +0200)
commit8cfdd326a858262545dbf335da9ce0507145d8e5
tree782e02044b456c437f4ee99d0be926e9494d4812
parentb933743d83f4d86d297fb1d5fd72f7b4e9396428
Add "had_error" argument to the "onDisconnect" in node.tcp.Client

This is a boolean value which allows one to detect if the socket was closed
due to errors. There is not yet a way to look up the actual error code.
src/net.cc
test/test-pingpong.js
test/test-reconnecting-socket.js
website/api.html