use malloc way to create Msg and MsgContent

Signed-off-by: xiehuc <xiehuc@gmail.com>
clean code

Signed-off-by: xiehuc <xiehuc@gmail.com>
add send text

Signed-off-by: xiehuc <xiehuc@gmail.com>