const size_t kPayloadHeaderLength = strlen(kPayloadHeader); should work