28 const std::string& component,
const std::string&
password,
int port )
31 m_jid.setServer( component );
32 m_disco->setIdentity(
"component",
"generic" );
46 Tag* h =
new Tag(
"handshake", sha.
hex() );
52 if( tag->
name() !=
"handshake" )
const std::string & server() const
virtual const std::string & password() const
ClientBase(const std::string &ns, const std::string &server, int port=-1)
void notifyStreamEvent(StreamEvent event)
Component(const std::string &ns, const std::string &server, const std::string &component, const std::string &password, int port=5347)
virtual bool handleNormalNode(Tag *tag)
virtual void handleStartNode(const Tag *start)
An implementation of SHA1.
void feed(const unsigned char *data, unsigned length)
This is an abstraction of an XML element.
const std::string & name() const
The namespace for the gloox library.
@ StreamEventAuthentication