Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

node.js

Name: Anonymous 2010-12-02 15:25

var http = require('http');
http.createServer(function (req, res) {
    res.writeHead(200, {'Content-Type': 'text/plain'});
    res.end('GRUNNUR\n');
}).listen(80, "'0.0.0.0');



What do you think prog? It's kind of like twisted for python, except the whole language is designed around the event loop and non blocking I/O.

http://nodejs.org/

Name: Anonymous 2010-12-03 4:56

>>4
everyone should be able to handle sockets in C
You mean, BSD Sockets? Windows Sockets? Boost.Asio?

Thing is, neither C nor C++ have a standardized Sockets Interface. And even if you use BSD Sockets, which are widely usable on Windows, you will still get different results, due to lack of standardized interfaces.

Enjoy your tons of #ifdef's

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List