Function ConnectedSocket.disconnected

inout inout(bool) disconnected() pure nothrow @property @nogc @safe const;

Returns

true if the stream socket peer has performed an orderly shutdown.