3 ms·
yup, the core `socket` module in Node.js is meant for that.
by derhuerst 10y ago
yup, the core `socket` module in Node.js is meant for that.
- gbuk2013 10y agoWrong again - the socket module does not give you raw sockets. If you were loo lazy to read the Wikipedia link I suggest you reconsider and educate yourself on the subject.
- derhuerst 10y agoyou're right, i was wrong, there is no core `socket` module (anymore?). but you were not right either. node core can only tell if a file is a socket, but not read from it, at least that's what the docs say. for people interested in this: https://github.com/santigimeno/node-unix-stream https://github.com/santigimeno/node-unix-stream
- gbuk2013 10y agoWrong again. What I said was that there was no native module in Node that would give you _raw socket_ access. And there isn't. Period. The thing you linked to doesn't either. Jeez ... :(