title: using msgpack to encode a user-defined structure.
body: <p>Im trying to work with msgpack. I have a receiver and a sender. Sender is a c++ client and the receiver is an erlang server. 
  Msgpack was totally great when I had an erlang server and an erlang client. I used to send and receive datatypes like lists, tuples, maps, binary, erlang and msgpack:pack() and msgpack:unpack() were totally fine. But when I started to change my sender to a c++ client, I started to think about this:</p>
  
  <p>Can msgpack pack user-defined data-structures like classes and structures. ? What if I have a complex structure and pack that using msgpack:pack() and on the receiver end, when I use msgpack:unpack() can I tell it to decode to a specific data-type Im interested in? may be a tuple ? </p>
  
  <p>Thanks. !</p>