added an assert in send.c, first commit of recv.c