简体   繁体   中英

Is there any C\C++ Cross-platform library for sharing data between app's?

有没有用于在应用程序之间共享数据的C \\ C ++跨平台库?

Obviously the answer to your question is.. Yes there are many cross platform libs for sharing data between applications. For example Boost has Boost Serialization , for data storage and reading, and Boost Interprocess , for in-memory data sharing.

A cross platform library with a lot of OS abstractions is ACE . You can look in the samples that come along with the tarball for detailed examples.

谷歌的协议缓冲区可能符合要求。

For messaging ?

  • Json (simple and easy)
  • Google Protocol Buffers (tad more complicated, thus more powerful)
  • XML (widely deployed, but you don't want it)

Or did you mean more than just the protocol ?

UDP or TCP.

Open a port using sockets. You'll find numerous examples of such when you google "c sockets"

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