Re: IPC and Shared Memory blocks

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

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).

Just being curious, are you talking of pipeio?

No, I was refering to my FakeThreads libraries:

http://openeuphoria.org/forum/m/47048.wc

http://openeuphoria.org/forum/m/72948.wc

http://openeuphoria.org/forum/m/27468.wc

It had three versions - a version using nix shared memory, a version using unix domain (file) sockets, and a version using TCP/IP. Back there Eu had no socket support so I had also wrapped a nix specific socket library.

But the last one should be easy to rewrite to use Eu4's sockets.

katsmeow said...

Oh, hmm, the windose msg code isn't in nix.

Edit (added): No, but the library used a notification system through TCP implemented through something akin to select() or poll(), making it multi-platform.

katsmeow said...

But pipeio is not fully bidirectional?

Actually, it is. The child process can read commands from stdin, and write commands to stdout. The parent process will have special file descriptors/handles to perform the other side of this communication.

I am not sure about the Windoze implementation, but on nix it's quite trivial to make it non-blocking.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu