Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

WoX

[java] connect javaprogram with c++ program

This topic is 5832 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is it possible to have a java program on a server and then connect to it from within a C++ program? I wanna have a serverprogram that can write and read to/from a SQL database, that seems possible, but I also wanna connect to that serverprogram from a C++ client that uses winsock2.

Share this post


Link to post
Share on other sites
Advertisement
Heh yea, then I got it confirmed, I do ask stupid questions sometimes

Share this post


Link to post
Share on other sites
It''s not a totally stupid question. Also there any issue with big endian/little endian ordering from Java based apps to win32 based apps and visa versa. That would probably fall under protocol though.

Share this post


Link to post
Share on other sites
You have to convert the endianness (whoa, a new word) on your own. That''s why the Win32 API has hton and ntoh to convert integers from host to network and from network to host.

Java seems to take care of that

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!