Hello everyone,

I would like to create several modules each exposing a particular protocol 
kind (streaming in general). I would like to keep them as modules, as the 
name implies. Another written-in-stone requirement that I have is to 
achieve 0-copy for the transferred data. Because of that, I need to be able 
to do inter-module sharing of data.

For example, suppose nodejs ingests some streaming data in protocol format 
A over an input TCP connection. Now, several consumers are connecting to 
the same nodejs but using a different protocol format B over n separate TCP 
connections.

Format A is implemented in moduleA and format B is implemented in moduleB, 
both loaded under the same node instance. This producer/consumer paradigm 
should allow write-onec-read-many (effectively, 0-copy): receive the data, 
store it somewhere in a common place, and have all consumers read and send 
from there.

How do I transfer a C/C++ pointer from moduleA to moduleB without involving 
passing though upper JS layer? 

In other words, is there any InterModuleCommunication framework available 
for native nodejs modules?

Best regards,
Andrei

-- 
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/48e1b354-412a-4c2c-a916-462005f0760c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to