Server: Add function table and handler function base on MsgID