Re: ooRexx - inter-program communication



Jeremy Nicoll - news posts wrote:
I'd like to know some things, first with respect to ooRexx programs running
under Windows. I'd also like to know if solutions are Windows-specific or
if one could reasonably easily write such apps so they'd also work on MACs
and *nix systems.

I'm only considering pairs/triples/more of apps running on a single platform
at a time, that is issues with eg 3 apps all running on one Windows box, or
4 apps running on a MAC, or 3 running on a linux box.



Can ooRexx programs communicate with each other?


If I were to writ some multitasking ooRexx applications, is there a way that
they could pass information back and forth between them? (I'm sure it'd be
possible via sockets, but I don't want to do that if there's an easier way.)
The volume of data to move would be either only a few hundred bytes at most
- and if that's all that's easy to do it'd be enough, or if it's easy to
move more might possibly include amounts of data up to 10 or 20 MB. (I'd be
happy to write 10-20MB sized data to temporary files and just pass the names
of those files around, if necessary - slower but on the other hand that has
the advantage of there being a permanent copy of the data.)


I'm wondering how either such program could tell that the other (or others)
are running, and how to pass data back & forth. Are these Windows API
issues (and other OS API issues) rather than ooRexx ones?

Are there any example programs covering this sort of thing?



Also, if one or more such programs are using socket services, is it possible
for more than one program to read/write data via a socket opened by just one
of them, if the socket number is passed from one program to another? (I
realise the programs would need separate buffers etc.)

Are there any example programs showing use of sockets? (I've used sockets
for a POP3-mailbox scanner written in BASIC under RISC OS, but even so I
found the RXsock documentation a bit sparse.)

How does one structure a cross-platform ooRexx socket-using program so it
multitasks on all target OSes?


Also are there any examples of how to do semaphores in a cross-platform
manner?


Take a look at the documentation for the External Data Queue (section 14.1.3 in the 3.2 Reference). In addition, the underlying classes were "exposed" in that release as well (cf 5.4.15) if you need more explicit control or access to multiple queues simultaneously. HTH...
.



Relevant Pages

  • ooRexx - inter-program communication
    ... under Windows. ... I'm only considering pairs/triples/more of apps running on a single platform ... Can ooRexx programs communicate with each other? ... Are there any example programs showing use of sockets? ...
    (comp.lang.rexx)
  • Re: Command Shell capabilities
    ... my apps use Windows Sockets to talk to each other. ... > What did you mean by the communication between the apps using sockets? ... Then there are a bunch of ways to do that in Windows (windows ...
    (microsoft.public.windowsxp.embedded)
  • Re: Mac eye for the Linux guy?
    ... > I'm a Unix sysadmin (Linux, Solaris, *BSD) who has been running Linux ... Windows is not an option -- the Windows trolls need not ... GIU apps. ... > Are there any decent programs supporting multiple virtual desktops ...
    (comp.sys.mac.advocacy)
  • Re: Workspace/desktop switching
    ... or even CPU time on a remote machine (won't help if it's local, ... opening/closing individual app windows in actual computer ... Zope products (web apps). ... directory, 3) swap desktops, swap tabs, click "refresh" wait ...
    (Debian-User)
  • Re: How to maximize your frustration with computers
    ... are written for Windows. ... and it is not only the engineering apps that are ... Vista, _none_ of the hospitals use Macs. ... I have run the $1,600 Dragon medical version on both ...
    (comp.sys.mac.system)