I am boost::asio, the messages and responses are all in the form of packed structs, and as the structs are packed I don't see a use of serialization here. I have seen similar questions and all advice serialization, but that is not what I am looking for. How can we pass and receive a objects of these structs over a tcp connection boost::asio? I am new to boost and just exploring it so a code example will be of much help. thanks in advance.
Example struct:
typedef struct {
MessageHeaderInComp MessageHeaderIn;
RequestHeaderComp RequestHeader;
uint32_t Username;
char Password[LEN_PASSWORD];
char Pad4[LEN_PAD4];
} __attribute__((packed)) UserLoginRequest;