manjaly
September 21st, 2000, 11:00 AM
Is it possible to communicate between a java application and a c++ application though sockets??
|
Click to See Complete Forum and Search --> : Java - C++ socket communication manjaly September 21st, 2000, 11:00 AM Is it possible to communicate between a java application and a c++ application though sockets?? Splatt September 21st, 2000, 12:20 PM It is possible, and I have done it several times. I don't know if it's possible in *all* cases. In my case the C++ application was listening on a port for incoming serialized data. The key here was that I had to figure out ahead of time the format that the C++ app expected the data in. I then wrote a Java app that could take the data I wanted to send and converted it to the correct format. After that it was easy. Using java.comm I created a socket that connected to the port that the C++ app was listening on. My java application then wrote data to the port. Let me know if you have any specific questions. "There's nothing more dangerous than a resourceful idiot." ---Dilbert codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |