recvfrom
function recvfrom(s: TSocket; var buf; len, flags: Integer; from: PSockAddr; fromlen: PInteger): Integer; stdcall; external ws2_32 name 'recvfrom';
from/fromlen may both be nil when the sender's address is not wanted. A datagram too large for buf is truncated and the call fails WSAEMSGSIZE.