Serialize and send a data structure using Boost?

后端 未结 7 1264
半阙折子戏
半阙折子戏 2020-12-02 10:45

I have a data structure that looks like this:

typedef struct
{
  unsigned short m_short1;
  unsigned short m_short2;
  unsigned char m_character;
} MyDataType;


        
相关标签:
7条回答
  • 2020-12-02 11:40

    I suspect you'll want to archive to memory first, and then write that to the socket.

    0 讨论(0)
提交回复
热议问题