in reply to Re^2: Shared memory and asynchronous access
in thread Shared memory and asynchronous access

Ah... Currently, MCE and MCE::Shared do not work for two or more processes that are completely independent. It seems like the next step to tackle. All the parts are there. Basically, what's missing is for the shared-manager to support TCP/IP. That will be awesome if it could do that.

MCE now includes MCE::Mutex::Flock supporting threads and processes. That includes two or more completely independent processes. It's a start, but TCP/IP is needed regarding the shared-manager. Who knows, it might happen. MCE::Mutex::Flock was added recently.

Thank you, vef445++. Thank you, Perlmonks++.

  • Comment on Re^3: Shared memory and asynchronous access

Replies are listed 'Best First'.
Re^4: Shared memory and asynchronous access
by vef445 (Novice) on Apr 05, 2017 at 21:48 UTC

    In my research I actually found some packages that allow TCP/UDP socket read and write. I would imagine that in many cases, when one application must read a stream from another, UDP is a good solution. I didn't go that route since I couldn't imagine asking my end-users to make sure their firewall is open on port XXX for what is, for the user, a single autonomous application.

    Right now, I'm modifying the architecture or this little application so the main script "gui.pl" will call the second one by importing its subroutine(s), not by executing it. So far it's not many modifications. WIP...

    I appreciate all the effort people have put in my question :)