add net test file, with one test group (connection)
extend net tests to include server, IP format checking
gracefully handle bogus IP candidates
properly factor into IPv4/6/either methods
get most IPv6 and IPv6 tests passing via StackOverflow regexes. unfortunately a few IPv4-suffixed-IPv6 tests fail so now…
"fix" the IPv6 regex ;-)
move IP address and misc. helpers out from middle of TCPSocket code
close socket when stream finished, fire end event whenever __listen loop ceases. updates #310, for posix version at least
temporary workaround for https://github.com/tessel/runtime/issues/311
net.Server should emit 'connection', not 'socket', events
have net.Server emit listen event, handle optional arguments to .listen method
actually register listening cb, fire event async so sync-registered listeners can catch
basic JS-side automatic port binding. does not handle potential conflicts with ephemeral port on CC3k side, cannot find info on that range
don't throw on listen error, fixes #332
adds a test for port binding behavior, fixes #331
avoid throwing and emit errors instead (except for two usage asserts), including a refactor of connect routine to support emitting socket open errors. updates #262 (will need to confirm event propagation through HTTP module)
fix whitespace
stop server from continued polling after socket is closed, fixes #333
default host when connecting, fixes #311
implement net.Socket.prototype.setTimeout