modify the update protocol

modify the update protocol
modify the protocol

modify the  protocol
add function

add function to deal with the all type message type