Re: Help communicating between IDL programs on two computers [message #47325] |
Thu, 02 February 2006 15:41  |
Rick Towler
Messages: 821 Registered: August 1998
|
Senior Member |
|
|
You'll need to use Randall Frank's idl_tools dlm library. He has
implemented sockets for IDL on unix and windows. Both client and server
sockets which is the important point. IDL's SOCKET procedure only
implements client sockets.
One approach would be for one program creates a listener that checks
periodically for data and acts accordingly upon the data received. The
other program connects to the listener and sends the commands.
If it you just have two programs, this is pretty simple. If you have
many programs connecting to a server, you may want to have a "control
channel" which all clients contact to initiate a connection. The server
can then open up a socket for the client and send back this "data
channel" socket number over the control channel which the client can
then use to connect.
Ronn Kling hosts this collection on his website:
http://www.kilvarock.com/freesoftware/dlms/randallfrank.htm
-Rick
Marc Reinig wrote:
> I need an IDL program on one computer to tell an IDL program on another
> computer to take a certain action. How would I do that? I'm thinking
> sockets, but I haven't quite figured out how.
>
> Thanks in advance,
>
> Marco
> ________________________
> Marc Reinig
> UCO/Lick Observatory
> Laboratory for Adaptive Optics
>
>
|
|
|