On Sunday, March 22, 2015 at 11:33:51 AM UTC-4, new_user wrote:
>
> Hi 
> I am trying to have node communicate easily with a spawned linux 
> executable. 
> The executable is already using stdout, so I need other paths for node-> 
> exe and exe-> node  and which is capable of high throughput (eg: 100mbps)
> I see a lot of node-> node examples  but am unsure how it looks like with C
> Is there a simple example someone can point me to ?
>

You could use a pipe on another file descriptor, setting it up when you 
spawn the executable. You could use a TCP or unix-domain socket to 
communicate, like any network process. Unix domain sockets are a tad more 
efficient, but even TCP on localhost is going to be able to pass a huge 
amount of traffic unless you're in a wacky VPS that does strange things to 
the lo device.

You could even use named pipes in the filesystem -- use mkfifo, and open 
them for reading / writing in the appropriate process to pass data back and 
forth.

Hope this helps

Aria 

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/f5bec1c7-de52-49af-99ce-1673bf86efd8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to