主权项 |
1. A message processing method, comprising:
receiving a content-requesting message sent by a terminal, wherein the content-requesting message comprises a name of a requested content, a request identifier, and excluded information, wherein the request identifier is used to identify at least one requested coding block, and wherein the excluded information comprises an attribute field of an obtained coding block; determining coding block information corresponding to the requested content according to the name of the requested content and pre-stored coding block information, wherein the coding block information comprises a coding block and an attribute identifier corresponding to the coding block, wherein the coding block is generated by performing linear coding on at least two content blocks with an equivalent size obtained by dividing a content, and wherein the attribute identifier comprises a name and an attribute field of the content; performing an AND operation on the request identifier respectively with attribute fields in the coding block information corresponding to the requested content, and obtaining a coding block corresponding to an attribute field with which the AND operation produces a non-zero result and which is not part of the excluded information as a first target coding block; and sending a first content reply message to the terminal, wherein the first content reply message comprises the first target coding block and the attribute field corresponding to the first target coding block. |