On Monday, April 14, 2014 9:33:20 PM UTC-4, mscdex wrote: > > On Monday, April 14, 2014 7:17:19 PM UTC-4, Reza Razavipour wrote: >> >> The server has created a UNIX domain socket, lets call it >> /tmp/connect_to_me and it is listening on it for connections. >> Lets switch to C++ for a second since the server is in C++ >> So client attempts to connect to /tmp/connect_to_me, the server accepts >> that and returns a "file descriptor" to the client for reading and >> writing... >> That is what my node client has to do. >> >> > Some time ago node used to allow sending and receiving of fds on unix > domain sockets, but it looks like support for both was removed awhile back. > You might have to write a binding of some kind to be able to do that now if > someone hasn't already published something similar on npm... >
You might start with the unix-dgram[1] and modify to allow reading of fds like how it was done back in v0.4[2] perhaps. [1] https://github.com/bnoordhuis/node-unix-dgram/blob/master/src/unix_dgram.cc#L112 [2] https://github.com/joyent/node/blob/v0.4/src/node_net.cc#L924 -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
