Hi all,
Now I’m developing a TCP application that can transmit the payload with actual data. The script below is one method for creating payload with the contents that I want. But I have one question about this method.
uint8_t *buffer = ...;
uint32_t size = ...;
Ptr<Packet> p = Create<Packet> (buffer, size);
Uint8_t *buffer = …; This means the created pointer ‘buffer’ points to unit8_t variable. so for the contents, only char can be put into the payload? If I want to send a 16 bits number, do I have to separate the 16 bits number to two 8 bits number?
Any help is appreciated.
Thanks.