0 for an empty (zero-length) UDP datagram
— a legal packet that must be treated as received-but-empty, NOT as EOF or "no data" — or the negative IoResult.WOULD_BLOCK / IoResult.ERROR codes.
ptrdiff_t recvFrom(ubyte[] buffer, out DatagramEndpoint sender)Receives a single datagram.
buffer | Buffer to receive data into. |
sender | Output parameter set to the sender's address. |
0 for an empty (zero-length) UDP datagram
— a legal packet that must be treated as received-but-empty, NOT as EOF or "no data" — or the negative IoResult.WOULD_BLOCK / IoResult.ERROR codes.