NodeJS IPC which spec ? Alternative for Python to do a process.send() ?

120 views
Skip to first unread message

Alexandre Strzelewicz

unread,
May 22, 2014, 4:39:15 PM5/22/14
to nod...@googlegroups.com
Hello,

I'm spawning a Python script in NodeJS via .spawn() and I would like to know if there is an alternative to do a `process.send()` with Python ?

What is the spec of the NodeJS IPC ? System V IPC vs POSIX IPC ?

Thanks,

greelgorke

unread,
May 23, 2014, 4:37:58 AM5/23/14
to nod...@googlegroups.com
all you get is unix domain sockets wrapped in streams: http://nodejs.org/api/child_process.html#child_process_child_stdin

you can use dnode with them to establisch a RPC between them. there is a dnode implementation for Python https://github.com/jesusabdullah/dnode-python

greelgorke

unread,
May 23, 2014, 4:39:19 AM5/23/14
to nod...@googlegroups.com
ah sorry. i missed, that the package is wip.


Am Donnerstag, 22. Mai 2014 22:39:15 UTC+2 schrieb Alexandre Strzelewicz:

Alexandre Strzelewicz

unread,
May 23, 2014, 1:30:59 PM5/23/14
to nod...@googlegroups.com
Thanks for this information, do you know where these socket files are stored ?
If I see that its complicated to implement I will go to another alternative

Alexandre Strzelewicz

unread,
May 25, 2014, 6:35:50 AM5/25/14
to nod...@googlegroups.com
OK ! When opening an IPC channel, it's finally only about writing on the right filedescriptor :

Reply all
Reply to author
Forward
0 new messages