Logo Search packages:      
Sourcecode: gabber version File versions  Download package

bool Session::disconnect (  ) 

Disconnect from the server.

Returns:
Whether </stream:stream> was actually sent.

Definition at line 95 of file jabberoo-session.cc.

References csNotConnected.

Referenced by push(), and ~Session().

{
     bool success = false;

     // only disconnect if we have received the starting stream tag to prevent the tagstream from throwing
     // an exception
     if ((_ConnState != csNotConnected) && _StreamStart)
     {
       *this << "</stream:stream>";
       success = true;
     }
     _ConnState = csNotConnected;
     _StreamStart = false;

     return success;
}


Generated by  Doxygen 1.6.0   Back to index