Connection.isOpened

bool isOpened()

Checks whether a connection is open or not.

Returns

true if the connection is open, false if it's not.