Socket.isClosed

bool isClosed()

Checks whether a socket is closed.

Returns

true if socket is closed, false otherwise