msg - The complete buffer received.
payload - The payload portion of the packet for this protocol layer. If this layer has layers above it, it should signal receive() with payload incremented by the size of its header. Payload is a pointer into the msg structure.
payloadLen - The length of the payload buffer. If this layer has layers above it, it should signal receive() with payloadLen decreased by the size of its headers and footers.