Skip to content
Browse files

Bind chat server to all IPs, and don'tlog a message on end

  • Loading branch information...
1 parent f6253bd commit 8215e83c8f4ee38c207a547913afec3add0fdbe9 @pquerna committed Dec 14, 2010
Showing with 2 additions and 4 deletions.
  1. +2 −4 udp/chat-server.js
View
6 udp/chat-server.js
@@ -8,7 +8,7 @@ var dgram = require('dgram');
var log = require('sys').log;
var CLIENT_GENERATION_GAP = 10;
var CLIENT_CLEANER_INTERVAL = 1000;
-SERVER_HOST = '127.0.0.1';
+SERVER_HOST = '0.0.0.0';
SERVER_PORT = 7000;
function ts() {
@@ -90,8 +90,6 @@ sock.bind(SERVER_PORT, SERVER_HOST);
var http = require('http');
http.createServer(function (request, response) {
response.writeHead(200, {'Content-Type': 'text/plain'});
- request.on('end', function() {
- console.log('cleaning up http client connection');
- });
+ response.write('\n');
httpclients.push(response);
}).listen(SERVER_PORT, SERVER_HOST);

0 comments on commit 8215e83

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