refine protocol sdk send msg, the chunk header generate.