Skip to content

Instantly share code, notes, and snippets.

@christophsturm
Forked from fsvehla/multi-listen.js
Created October 11, 2012 13:38
Show Gist options
  • Save christophsturm/3872338 to your computer and use it in GitHub Desktop.
Save christophsturm/3872338 to your computer and use it in GitHub Desktop.
var http = require('http');
var net = require('net');
var server = http.createServer(function (req, res) {
res.end('hullo');
});
socket=new net.Socket();
socket.connect(1250);
socket.connect(1251);
server.listen(socket, function () {
console.log('Listening on socket');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment