i have many processes running, send messages to each other by socket. among them, there are two processes, the first one send 24 bytes to the other one(i'm sure it's 24 bytes because i get it from the return value of sendto()), but on the receiver side i only received 16 bytes.
nRecvbytes = recvfrom(sock, recvbuf, recvlen, 0, addr, sa_len)
the recvlen is 24 bytes, but nRecvbytes is 16 bytes. And this case is not stable, as i run this for many times, this situation sometimes happen but sometimes not. Does anyone have any idea why this may happen? thanks!