Skip to content

Commit

Permalink
Fix tabs to spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
creationix committed Mar 8, 2012
1 parent c3160d4 commit ae92afe
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions test-tcp.js
Expand Up @@ -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.