Skip to content
Permalink
Browse files

Fix tabs to spaces

  • Loading branch information...
creationix committed Mar 8, 2012
1 parent c3160d4 commit ae92afed900bed566f68918671fabb588765f89c
Showing with 14 additions and 14 deletions.
  1. +14 −14 test-tcp.js
@@ -5,20 +5,20 @@ var Tcp = require('uv').Tcp;
var server = new Tcp();
server.bind("0.0.0.0", 1337);
server.listen(128, function () {
var client = new Tcp();
server.accept(client);
client.readStart();
client.onData = function (chunk) {
p("onData", chunk);
client.write(chunk, function () {
p("onWrite", chunk);
});
};
client.onEnd = function () {
p("onEnd");
client.close();
};
p("Connection!", client);
var client = new Tcp();
server.accept(client);
client.readStart();
client.onData = function (chunk) {
p("onData", chunk);
client.write(chunk, function () {
p("onWrite", chunk);
});
};
client.onEnd = function () {
p("onEnd");
client.close();
};
p("Connection!", client);
});

p(server);

0 comments on commit ae92afe

Please sign in to comment.
You can’t perform that action at this time.