Всем доброго время суток. Понадобилось написать свой jabber клиент. Решил испольтзовать QXMMP. Пока начал по минимуму:
1. Создал форму авторизации с логином и паролем; Для тестирования зарегился на jabber.org
2. В main.cpp пытаюсь приконектиться к серверу и провести проверку, если соединение прошло удачно, то загружать основное окно. Однако client->isConnected() все время возвращает false.
12:50:40.883 INFO Connecting to: jabber.org:5222
12:50:41.023 DEBUG Host found
12:50:41.211 INFO Connected
12:50:41.211 SENT <?xml version='1.0'?><stream:stream to='jabber.org' xmlns='jabber:client' xmlns:stream='
http://etherx.jabber.org/streams' version='1.0'>
12:50:41.429 RECEIVED <?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='
http://etherx.jabber.org/streams'
from='jabber.org' id='9323103ab3cb9ad2' version='1.0'><stream:features><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/
><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>CRAM-MD5</mechanism><mechanism>LOGIN</
mechanism><mechanism>PLAIN</mechanism><mechanism>DIGEST-MD5</mechanism><mechanism>SCRAM-SHA-1</mechanism></
mechanisms><compression xmlns='
http://jabber.org/features/compress'><method>zlib</method></compression><ver
xmlns='urn:xmpp:features:rosterver'><optional/></ver></stream:features>
12:50:41.429 SENT <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'/>
12:50:41.617 RECEIVED <challenge xmlns='urn:ietf:params:xml:ns:xmpp-
sasl'>bm9uY2U9IjMrOVUxVllBTnZGQUQvNjdRdzhKc0gvTUtKUFZLb3Y0Q1EvelNWb1MwdFE9IixyZWFs
bT0iamFiYmVyLm9yZyIscW9wPSJhdXRoIixtYXhidWY9MTYzODQsY2hhcnNldD11dGYtOCxhbGdvcml0a
G09bWQ1LXNlc3M=</challenge>
12:50:41.617 SENT <response xmlns='urn:ietf:params:xml:ns:xmpp-
sasl'>Y2hhcnNldD11dGYtOCxjbm9uY2U9Im02cGRtNEYvVmpaZE1YWUQ3UkszMVFVOWV1RnZvWk5SV
EhJU2NyRUZ6c1U9IixkaWdlc3QtdXJpPSJ4bXBwL2phYmJlci5vcmciLG5jPTAwMDAwMDAxLG5vbmNlPSIz
KzlVMVZZQU52RkFELzY3UXc4SnNIL01LSlBWS292NENRL3pTVm9TMHRRPSIscW9wPWF1dGgscmVhbG0
9amFiYmVyLm9yZyxyZXNwb25zZT0xMTg1NDJmNDFiYmI2NjhlZmZlMzM1Y2EyMmZiNjc0Yix1c2VybmFtZ
T1ydWJlemg=</response>
12:50:41.898 RECEIVED <success xmlns='urn:ietf:params:xml:ns:xmpp-
sasl'>cnNwYXV0aD00MjJiNDUwYmFmYTEzM2IzM2MwOThmYzZlMjZkNjRjNQ==</success>
12:50:41.898 DEBUG Authenticated
12:50:41.898 SENT <?xml version='1.0'?><stream:stream to='jabber.org' xmlns='jabber:client' xmlns:stream='
http://etherx.jabber.org/streams' version='1.0'>
12:50:42.086 RECEIVED <?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='
http://etherx.jabber.org/streams'
from='jabber.org' id='83b1068991ccb2fa' version='1.0'><stream:features><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><required/
></bind><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/><compression xmlns='
http://jabber.org/features/compress'><method>zlib</method></compression><ver xmlns='urn:xmpp:features:rosterver'><optional/></ver></stream:features>
12:50:42.086 SENT <iq id="qxmpp4" type="set"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><resource>QXmpp</resource>
</bind></iq>
12:50:42.273 RECEIVED <iq to='rubezh@jabber.org/QXmpp' type='result' id='qxmpp4'><bind xmlns='urn:ietf:params:xml:ns:xmpp-
bind'><jid>rubezh@jabber.org/QXmpp</jid></bind></iq>
12:50:42.273 SENT <iq id="qxmpp6" to="jabber.org" type="set"><session xmlns="urn:ietf:params:xml:ns:xmpp-session"/></iq>
12:50:42.461 RECEIVED <iq from='jabber.org' type='result' id='qxmpp6'/>
12:50:42.461 SENT <presence><c xmlns="
http://jabber.org/protocol/caps" hash="sha-1" node="
http://code.google.com/p/qxmpp"
ver="b9jg2r3aRswRJCZ08qidhNU6/LQ="/></presence>
12:50:42.476 SENT <iq id="qxmpp8" from="rubezh@jabber.org/QXmpp" type="get"><query xmlns="jabber:iq:roster"/></iq>
12:50:42.711 RECEIVED <presence from='rubezh@jabber.org/QXmpp' to='rubezh@jabber.org/QXmpp'><c xmlns="
http://jabber.org/protocol/caps" hash="sha-1" node="
http://code.google.com/p/qxmpp" ver="b9jg2r3aRswRJCZ08qidhNU6/LQ="/></presence><iq
to='rubezh@jabber.org/QXmpp' type='result' id='qxmpp8'><query xmlns='jabber:iq:roster' ver='0'></query></iq>
12:51:42.462 SENT <iq id="qxmpp10" to="jabber.org" from="rubezh@jabber.org/QXmpp" type="get">
<ping xmlns="urn:xmpp:ping"/></iq>
12:51:42.649 RECEIVED <iq from='jabber.org' to='rubezh@jabber.org/QXmpp' type='result' id='qxmpp10'/>
12:52:42.463 SENT <iq id="qxmpp13" to="jabber.org" from="rubezh@jabber.org/QXmpp" type="get">
<ping xmlns="urn:xmpp:ping"/></iq>
12:52:42.651 RECEIVED <iq from='jabber.org' to='rubezh@jabber.org/QXmpp' type='result' id='qxmpp13'/>