UdpSocket.lastError

int lastError() @property const @safe nothrow @nogc

Get the last error recorded by a socket operation.

Returns

POSIX errno value from the last failed operation, or 0 if none.