Taling to C++ server over socket

R

Ranjit

Hi,

I am trying to figure out a way to have a Java client talk to a C++
server. I can open a connection with the server and the simple test
works fine. However I am not sure how to pass the Java types, viz.
ints/shorts/String to the server so that the server can recognize it in
the C++ corresponding types (int/short/char[]).
I read on the net that the DataOutputStream searializes the basic types
into network byte order which can then be understood by the C++ server.
However that doesn't seem to work. Am I missing something?

TIA,
Ranjit
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top