Sock::IsConnected

Check if still connected.

Synopsis

Declared in <util/sock.h>

[[nodiscard]]
virtual
bool
IsConnected(std::string& errmsg) const;

Return Value

true if connected

NOTE

The return value should not be discarded.

Parameters

NameDescription
errmsg [out]The error string, if the socket has been disconnected.