15 #include "component.h"
28 const std::string& component,
const std::string& password,
int port )
46 Tag* h =
new Tag(
"handshake", sha.
hex() );
52 if( tag->
name() !=
"handshake" )
This is the common base class for a Jabber/XMPP Client and a Jabber Component.
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)
void setIdentity(const std::string &category, const std::string &type, const std::string &name=EmptyString)
bool setServer(const std::string &server)
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