add several constants int protocol
change makefile client