PAYLOAD Layer
Processing of the PAYLOAD
is always the last stage in the protocol stack. All previous layers have successfully processed their transport data, the message object was created and is ready to read its fields encoded in the PAYLOAD.
Such layer must receive type of the message interface class as a template parameter and redefine read/write iterator types.
The read/write operations just forward the request the message object.
Please note that read()
member function expects to receive a reference to the smart pointer, which holds allocated message object, as the first parameter. The type of the pointer is not known yet. As the result, type of such pointer is provided via template parameter.
Last updated