state

State state() const

Returns an enumeration indicating the current state of the session. Possible values are shown at the end of the description of this class.