duc has asked for the wisdom of the Perl Monks concerning the following question:
Hi !
This is just a general question about communication between programs. Yeah.. I need to do this a lot.
I was wondering if I could use a socket to communicate between two programs (both ways) if one program is in perl and the other is a console application (which I can edit). I know the two programs should "talk" and "listen" to the same socket. And by the way if I am under Windows what address family do I give to these sockets ? Oh, and the two programs are likely to be on the same computer.
I was also considering to transform my console application into a dll and call the dll function in perl. Is it possible with the standard modules ? I know there is Win32::API but I don't have it and I can't get to install it on my machine. I would also have to send arrays (5 in one of my application) to the function and return an array. Would that cause a problem ?
I've been trying to use IPC::Open2 but it does not work, so I am looking for some other solutions !
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using socket with c++
by liverpole (Monsignor) on Jul 26, 2006 at 13:33 UTC | |
|
Re: using socket with c++
by cdarke (Prior) on Jul 26, 2006 at 16:08 UTC | |
|
Re: using socket with c++
by sgifford (Prior) on Jul 26, 2006 at 16:18 UTC | |
by duc (Beadle) on Jul 26, 2006 at 17:02 UTC | |
by cdarke (Prior) on Aug 03, 2006 at 09:42 UTC | |
|
Re: using socket with c++
by Moron (Curate) on Jul 27, 2006 at 12:10 UTC |