Satya wrote:
While we're at it, do sendto() and recvfrom() send and receive a full packet, assuming it's SOCK_DGRAM (UDP)?
Yes. UDP is supposed to preserve packet boundaries. The packet may get fragmented and reassembled at the IP layer but this is transparent (someone correct me if I'm wrong).
Manish