send msg according to msg.DataType