vb.net - IPC named pipes or shared memory

G

Guest

Hi,

I need to communicate between two processes. I tryed using named pipes, but
I'm afraid it's too complex for me...

I'd like to explain what I need. The two processes must just exchange an
array of two bytes. The successive writes should overwrite the previous ones.
For example, the process A sends byte0=7, byte1=9 and then it sends byte0=8,
byte1=10. The process B reads only after the second array is sent. The read
array should be byte0=8, byte1=10, the first array should not be read. So
every process must always see only the last array of bytes.

As I've said above, I've not been able to do it using named pipes. So I did
it using the FileSystem class, and it works. But I would need a faster
communication.

Can you please show me how to do the same in memory?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top