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" )
bool setServer(const std::string &server)
Component(const std::string &ns, const std::string &server, const std::string &component, const std::string &password, int port=5347)
The namespace for the gloox library.
virtual void handleStartNode(const Tag *start)
void setIdentity(const std::string &category, const std::string &type, const std::string &name=EmptyString)
void feed(const unsigned char *data, unsigned length)
An implementation of SHA1.
const std::string & name() const
virtual bool handleNormalNode(Tag *tag)
void notifyStreamEvent(StreamEvent event)
This is the common base class for a Jabber/XMPP Client and a Jabber Component.
This is an abstraction of an XML element.