Skip to content
Browse files

Save net for debugging purposes

  • Loading branch information...
1 parent 930d1c6 commit 68e93950a4c9c65211d997fca7b3cf0b1f716e76 @creationix creationix committed Mar 21, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 net.can
View
8 net.can
@@ -79,7 +79,11 @@ createServer = function (onConnection) {
////////////////////////////////////////////////////////////////////////////////
// Make an echo server using the API
-createServer((client) {
+server = createServer((client) {
client:pipe(client)
-}):listen(8080)
+})
+ServerPrototype.listen(1)
+ServerPrototype.listen(1, 2)
+ServerPrototype.listen(1, 2, 3)
+ServerPrototype.listen(1, 2, 3, 4)
print("TCP echo server listening on port 8080")

0 comments on commit 68e9395

Please sign in to comment.
Something went wrong with that request. Please try again.