简体   繁体   中英

How to communicate real-time data between Java and C++ code?

My application includes 2 devices - a phone and a CPU. The phone is transferring data constantly to the laptop at low latencies (milliseconds). Both can be assumed to have Wifi.

What existing software should I look into for accomplishing this task? Any example applications I should look at?

Cheers

Something like RabbitMQ or ZeroMQ could be worth a look. I think you are looking for a messaging layer / protocol that provides a native client for both Java and C++, and that can handle (or let you handle in your client code) any serialisation issues correctly related to your platforms (endian-ness would be the primary issue to look at).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM