| ??? 05/22/02 20:35 Read: times |
#23281 - RE: circular buffers by pointers or index ? |
Hi Mahmood,
if I want to receive text messages only, I use not a circular buffer. Any message was written from the start of the receive buffer and if 0x0D or 0x0A was received a flag was set, that a message was complete received. Then this message can be parsed without problems. And if it was finished all further received bytes are moved back to the start of the receive buffer and so on. Peter |



