summaryrefslogtreecommitdiff
path: root/test/fixtures/net-fd-passing-receiver.js
diff options
context:
space:
mode:
authorOleg Efimov <efimovov@gmail.com>2010-12-03 04:03:18 +0300
committerRyan Dahl <ry@tinyclouds.org>2010-12-02 17:49:23 -0800
commitc0d69a488380fb3cfc1fb257972730ad5c570ef9 (patch)
tree55c008f6c6713ec30401ced1c49dc5bebe1d1b74 /test/fixtures/net-fd-passing-receiver.js
parentd3532a4bf294e9cbb7e6f6edec47477310dda14b (diff)
downloadnode-new-c0d69a488380fb3cfc1fb257972730ad5c570ef9.tar.gz
GJSLint part of tests
Diffstat (limited to 'test/fixtures/net-fd-passing-receiver.js')
-rw-r--r--test/fixtures/net-fd-passing-receiver.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/fixtures/net-fd-passing-receiver.js b/test/fixtures/net-fd-passing-receiver.js
index a51dc094bf..e22d1883ed 100644
--- a/test/fixtures/net-fd-passing-receiver.js
+++ b/test/fixtures/net-fd-passing-receiver.js
@@ -1,32 +1,32 @@
-process.mixin(require("../common"));
-net = require("net");
+process.mixin(require('../common'));
+net = require('net');
path = process.ARGV[2];
greeting = process.ARGV[3];
receiver = net.createServer(function(socket) {
- socket.addListener("fd", function(fd) {
+ socket.addListener('fd', function(fd) {
var peerInfo = process.getpeername(fd);
peerInfo.fd = fd;
var passedSocket = new net.Socket(peerInfo);
- passedSocket.addListener("eof", function() {
+ passedSocket.addListener('eof', function() {
passedSocket.close();
});
- passedSocket.addListener("data", function(data) {
- passedSocket.send("[echo] " + data);
+ passedSocket.addListener('data', function(data) {
+ passedSocket.send('[echo] ' + data);
});
- passedSocket.addListener("close", function() {
+ passedSocket.addListener('close', function() {
receiver.close();
});
- passedSocket.send("[greeting] " + greeting);
+ passedSocket.send('[greeting] ' + greeting);
});
});
/* To signal the test runne we're up and listening */
-receiver.addListener("listening", function() {
- common.print("ready");
+receiver.addListener('listening', function() {
+ common.print('ready');
});
receiver.listen(path);