add parse packet for echo server of libevent