Re: ooRexx - inter-program communication
- From: Gil Barmwater <gil_b@xxxxxxxxxxxxx>
- Date: Mon, 30 Mar 2009 19:52:31 -0400
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...
.
- References:
- ooRexx - inter-program communication
- From: Jeremy Nicoll - news posts
- ooRexx - inter-program communication
- Prev by Date: ooRexx - inter-program communication
- Next by Date: BSF4Rexx problem with nested invocations
- Previous by thread: ooRexx - inter-program communication
- Next by thread: BSF4Rexx problem with nested invocations
- Index(es):
Relevant Pages
|