I have been working with node.js for the past few weeks and I need to implement the FAST-CGI protocol. The problem is that when I create a UNIX socket (via the "new Socket"), I need to get the file name or file descriptor. But socket.fd is null (default parameter).
My question is: โNew Socketโ creates an operating system socket object file, and if so, how can I get a file descriptor for a file or file name?
I'm not sure that this is how I should create Socket, but like this:
node:
var net = require(net) var socket = new net.Socket() console.log(socket); { bufferSize: 0, fd:null, type: null, allowHalfOpen: false, _writeImpl: [Function], _readImpl: [Function], _shutdownImpl: [Function] }
source share