Update msg_proc.c

server procedure updated