The following example code generates a stream of ten packets, each containing a single byte ('A', 'B', ... , 'J'):