Click to See Complete Forum and Search --> : C++ -> java Applet


May 4th, 2000, 04:43 AM
Hi,

I need some help regarding Java Servlets.
Already i wrote an applet and a servlet. They are communicating without any problem.
Now, I have a program written in C++, which should send some data to the servlet program.( I am using Apache web server )
( Using Java Socket programming or some other technology).
Is this possible or is there some issues with regard to port number or other.
The C++ program resides in the same machine, where web-server is installed.

or else is there any way through which the C++ program can send the data directly to the applet.

Waiting for the reply,
with regards,
raghu.

kib63613
May 4th, 2000, 05:17 AM
It should be possible for communication between C++ and Java applet since your C++ program is on
the same machine with the web server which applet resides on. But the annoying case is that the data
type that your programs communicates each other may make the data which can not be regonize
successfully. The safe solution is to convert your every data type to text and pass this text to the
remote end. On the remote end, it convert the text to the proper data type for further using.
Of course, using Servlet communicating with the C++ program is better thant applet communicating
with C++ program directly. The most observed case that we can see is that this c++ program can be
port to other machine without interferring the orignal solution.
good luck,
Alfred Wu