Socket.isClosed

bool isClosed() nothrow

Checks whether a socket is closed.

Returns

true if socket is closed, false otherwise