Hi,
I'm trying to write simple component using gloox library and have some
problems.
Short version:
(...)
jabCom = new Component(XMLNS_COMPONENT_ACCEPT, serverHostname,
transportHostname, transPass, transPort);
jabCom->disco()->setVersion( "Transport", GLOOX_VERSION,"Linux");
jabCom->registerConnectionListener( this );
jabCom->registerMessageSessionHandler( this, 0 );
(...)
void JabberComponent::handleMessageSession( MessageSession *session ){
printf( "got new session\n");
m_session = session;
m_session->send( "Hello World!" );
(...)
}
And here is the problem. Sending method is creating message tag without
"from" attribute so client cannot receive that message.
Moreover in ClientBase::addFrom( Tag* tag ) is condition depending on
m_selectedResource with I don't see to be set.
I would be grateful for any suggestions.
I'm using trunk version in 3610 revision.