How do programs talk with each other?
-
1: If a want to make a programs that can send and recieve requests with one another, would sockets be the usual way to construct that interface? 2: can only one program or many connect with one server on one port? ie, do I have to have an open port each time my program wants to make a simultaneous connection? 3: Is there an easy way to connect between two languages? ie some easy way to program a universal way of sending back and forth. In sockets, python has pickling and mfc has csocketfile for working with data. Is there something like this that works with both C++ and python, or should just search the libraries for this? Thanks for the help!
-
1: If a want to make a programs that can send and recieve requests with one another, would sockets be the usual way to construct that interface? 2: can only one program or many connect with one server on one port? ie, do I have to have an open port each time my program wants to make a simultaneous connection? 3: Is there an easy way to connect between two languages? ie some easy way to program a universal way of sending back and forth. In sockets, python has pickling and mfc has csocketfile for working with data. Is there something like this that works with both C++ and python, or should just search the libraries for this? Thanks for the help!
-
1: If a want to make a programs that can send and recieve requests with one another, would sockets be the usual way to construct that interface? 2: can only one program or many connect with one server on one port? ie, do I have to have an open port each time my program wants to make a simultaneous connection? 3: Is there an easy way to connect between two languages? ie some easy way to program a universal way of sending back and forth. In sockets, python has pickling and mfc has csocketfile for working with data. Is there something like this that works with both C++ and python, or should just search the libraries for this? Thanks for the help!
yeah, you can depend upon socket for universal data transfer it will work with every Socket aware langauge without any problem.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta
-
1: If a want to make a programs that can send and recieve requests with one another, would sockets be the usual way to construct that interface? 2: can only one program or many connect with one server on one port? ie, do I have to have an open port each time my program wants to make a simultaneous connection? 3: Is there an easy way to connect between two languages? ie some easy way to program a universal way of sending back and forth. In sockets, python has pickling and mfc has csocketfile for working with data. Is there something like this that works with both C++ and python, or should just search the libraries for this? Thanks for the help!
an older method is the handshake method. That's how the old modems work if I'm not mistaken. Suppose Program A and B A writes a file to disk for B to read and waits until B replies with a file. In the meantime B picks up the file, reads the data and replies to A etc etc. The method is quite old and there are probably better ways, but it still works. good luck. No hurries, no worries.