有没有用于在应用程序之间共享数据的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 ?
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.