954,523 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Java Server, Native Client

Hi all,
I'm working on a C++ app that needs to communicate with a server. I was wondering if it would be possible to use Java for the Server, and C++ for the Client. I'm assuming it should work (without the use of JNI) because TCP packets are TCP packets, I just have to make sure that both sides know about the packet structure.

Thanks

llemes4011
Posting Whiz in Training
224 posts since Aug 2008
Reputation Points: 41
Solved Threads: 13
 

I think it should work.

NormR1
Posting Expert
Moderator
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
 

I can't speak about the C++ side, but Java TCP/IP is just plain old vanilla TCP/IP. I've had no problems using it to communicate with TCP/IP-based embedded systems that certainly are not Java.

JamesCherrill
Posting Genius
Moderator
6,371 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
 

Awesome. I was hoping that was the case. Thanks!

llemes4011
Posting Whiz in Training
224 posts since Aug 2008
Reputation Points: 41
Solved Threads: 13
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: