Re: IPC and Shared Memory blocks

new topic     » goto parent     » topic index » view thread      » older message » newer message
katsmeow said...

Does anyone have a bi-directional data sharing memory, to which more than two separate processes can connect, and all can read what any of them write to the shared memory?

Alas, I developed a nix-only solution for Euphoria over a decade and a half ago. It would actually be really simple though to port it to Windoze under Eu 4.x (if someone could find the interest).

ghaberek said...

ZeroMQ supports IPC and makes this type of bi-directional communication pretty straightforward.

Edit: I just noticed this: http://api.zeromq.org/2-1:zmq-ipc

The inter-process transport is currently only implemented on operating systems that provide UNIX domain sockets. 

-Greg

Well, for Windoze users, there is still a way.

ZeroMQ appears to support being built under cygwin ( https://github.com/zeromq/libzmq/blob/master/README.cygwin.md , http://stackoverflow.com/questions/21017296/how-to-build-zeromq-on-windows-with-cygwin ) and cygwin appears to support unix domain sockets ( https://cygwin.com/cygwin-ug-net/highlights.html , http://stackoverflow.com/questions/23086038/what-mechanism-is-used-by-msys-cygwin-to-emulate-unix-domain-sockets , https://cygwin.com/ml/cygwin/2003-05/msg00142.html )

So, one can in fact build a version of ZeroMQ, for Windoze, using cygwin, that supports unix domain sockets. A little bit of work perhaps, but nothing too difficult for an experienced C/C coder.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu