Receiving the bytes in point-to-point communication using temoporary buffers

Sir,

I am doing a project in which the communication type is point-to-point.During the reception of bytes I am using a temporary buffer of 8 byte length.After storing the 8 bytes, how I can process that data for further things, like cheking for valid packet(checking for start,stop and checksum bytes)?

More questions in this forum