Add set handler for msg from peer, impl as hash table.