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

string JID::getUserHost ( const string &  jid  )  [static]

Get the username and the server (host) from a JabberID.

The username and server in the form user

Definition at line 46 of file jabberoo.cc.

Referenced by jabberoo::PresenceDB::available(), compare(), jabberoo::PresenceDB::contains(), jabberoo::PresenceDB::insert(), and jabberoo::PresenceDB::remove().

     // Search for resource divider..
     string::size_type i = jid.find("/");
     // If it was found, extract he userhost and return..
     if (i != string::npos)
        return jid.substr(0,i);
        return jid;

Generated by  Doxygen 1.6.0   Back to index