Packing struct in Boost Asio buffer

前端 未结 3 1403
悲&欢浪女
悲&欢浪女 2021-01-18 21:18

I\'m looking for a way to send a packet made of a custom data structure through a socket with Boost Asio. At the moment I understand that you can send a string with the stan

3条回答
  •  旧巷少年郎
    2021-01-18 22:05

    You can also use Protocol Buffers for that purpose, not hard in configuring

    https://code.google.com/p/protobuf/

提交回复
热议问题