methodtAbstractDatagramSocket.ReceiveFrom
function ReceiveFrom(var aBuf; aCount: Integer; out aFrom: tSocketAddress; aErrorCode: PInteger = nil): Integer; virtual; abstract;
Takes the next datagram, if one is waiting.
>= 0 its length; aFrom is its sender. 0 is a real, empty datagram, NOT an end of stream - a datagram socket has none.
< 0 and aErrorCode^ = 0 nothing is waiting.
< 0 and aErrorCode^ <> 0 cDatagramTruncated (the datagram was larger than aCount and is gone), cDatagramClosed, or a system error. The socket stays open. With aErrorCode = nil the errors raise EstSocketError; nothing waiting does not.