Jump to content

Socket interaction between C++ and Java Code

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
satishkumar432

satishkumar432

    Newbie

  • Members
  • Pip
  • 6 posts
Hello Everyone,

Im a C/C++ developer with an exposure to socket programming in UNIX. Iam newbie to Java.I would like to implement client server interaction between C++ code(Server) to the Jave code(Client).

Since Im new to Java, I would be thankful to you guys if you can provide me some basic Java stuff (API's)/Links/Startups which might be helpful in achieving the above mentioned design.

Thanks in Advance,

./Satish_Robin

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Moved to the correct forum. You haven't really specified a "design", just a goal. There are a lot of subtle differences between Java and C++ that can mess you up. How well do you know Java?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
satishkumar432

satishkumar432

    Newbie

  • Members
  • Pip
  • 6 posts

WingedPanther said:

Moved to the correct forum. You haven't really specified a "design", just a goal. There are a lot of subtle differences between Java and C++ that can mess you up. How well do you know Java?

Hi WingedPanther,

Thanks for moving it to the correct forum.I just started learning Java, I m a novice learner in it. The current design is, I have a C++ code on the LINUX machine which does some searching, I would like to fetch these search results from the linux box and display them onto a HTML page on a different windows machine. I would like to maintain the connectivity between these 2 machines b using SOCKETs. This is kind of an abstract design which currently I have.

Pls excuse if this expalination was not to the expectations .. :)

Regards,
./Satish_Robin

Edited by Orjan, 22 July 2009 - 01:32 AM.
Adding quotes


#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
For C++, the Boost library provides libraries for socket programming. Java has it built in. The real key will be deciding how you want to transfer the data between them (format). Also, will the C++ program that collects the data be acting as the server, or will collecting the data be separate from serving it (real-time vs non-real-time data).
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog