How to: Transporting various data types through TCP/IP
posted 9 years ago
Hi guys, it seems that I have to take your time with my dumb question again
This time I am transporting various data types(int, int, and boolean) through TCP/IP connection. Last time I succeeded in transporting those data types using an object (I put all those data types into an object, provided the get/set implementation, and send the whole object). The problem is that right now I am transporting the same data but between Java and C++ application. I've browsed the Internet but couldn't find the solution.
Has anyone around here ever tried to transport various data types from Java to C++ vice versa? Could somebody give me some sample code regarding this matter.