add macro defconst and use defconst to define telnet protocal