A real implementation would probably use character 127 but I am using "%" for illustrative purposes. A real implementation would also recognize that the second of two chars of data could be a 127 and therefore you could see two sync characters where one of them is really data.
%%GF%%HG%34%%4%%%HH
First payload - GF
Second payload - HG
Garbage collected - %34
Third payload - 4%
Fourth payload - HH
%%GF %%HG %34 %%4% %%HH
First payload - GF
Second payload - HG
Garbage collected - %34
Third payload - 4%
Fourth payload - HH
%%GF %%HG %34 %%4% %%HH
Here is a link to the sample code.
No comments:
Post a Comment