3 ms·
The standard way is to include explicit information on the length of the message that is following. For example if the message is x bytes long then you first s
by mytailorisrich 7y ago
The standard way is to include explicit information on the length of the message that is following.
For example if the message is x bytes long then you first send 'x' then you send the x bytes of the message.
Or your messages have a defined header that contains the length of the message payload.