use msgpack pack message from lua to c++