BytesReceived
Number of bytes received (>= 0 since it is possible to receive a 0 length datagram). If -1, no data has been received (if a timeout was specified this means we timed out). If < -1, an error occurred. The values that can be returned are:
| Code | Description |
|---|---|
| >=0 | Received a datagram with a payload of this many bytes. (It is possible to receive a zero-length UDP datagram.) |
| -1 | Did not receive a datagram, even after potentially waiting if a timeout was set. |
| -2 | Socket not initialized or was closed. (The only way this will be closed is if you call UDPSocketClose.) |
| -4 | Invalid InDatagramLen (negative or greater than the size of the buffer) |
|
-6 |
Invalid SocketID. |
Type: Variable of type Long