th_msg
strcpy(tp->th_msg, pe->e_msg);
tp->th_msg[length] = '\0';
ap->th_msg);
dp->th_msg);
strcpy(tp->th_msg, pe->e_msg);
printf("<code=%d, msg=%s>\n", ntohs(tp->th_code), tp->th_msg);