Skip to content

Commit

Permalink
Save net for debugging purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
creationix committed Mar 22, 2012
1 parent 930d1c6 commit 68e9395
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions net.can
Expand Up @@ -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.