|
39 | 39 | #include "../xmpp/xmppconfig.h"
|
40 | 40 | #include "../xmpp/jabberid.h"
|
41 | 41 |
|
| 42 | + |
42 | 43 | // TOOD: Move interface when refactoring for BOSH 'streams'
|
43 | 44 | #include "../connect/tcpclient.h"
|
44 | 45 |
|
45 | 46 | #include <iostream>
|
46 | 47 |
|
47 | 48 |
|
48 | 49 |
|
| 50 | + |
| 51 | +/// @mainpage Iotivity XMPP Client |
| 52 | +/// |
| 53 | +/// @section intro Introduction |
| 54 | +/// |
| 55 | +/// The Iotivity XMPP Client is a basic C++ XMPP client implementation written to provide |
| 56 | +/// cross-platform support for XMPP for Iotivity and the CCF project. |
| 57 | +/// |
| 58 | +/// @section XMPP Support |
| 59 | +/// |
| 60 | +/// <ul> |
| 61 | +/// <li>RFC 6120 (XMPP Core)</li> |
| 62 | +/// <li>SASL |
| 63 | +/// <ul> |
| 64 | +/// <li>RFC 4616 (PLAIN)</li> |
| 65 | +/// </ul> |
| 66 | +/// </li> |
| 67 | +/// <li>XMPP Extensions |
| 68 | +/// <ul> |
| 69 | +/// <li>XEP-0077 (In-Band Registration)</li> |
| 70 | +/// <li>XEP-0030 (Service-Discovery) [Basic queries only]</li> |
| 71 | +/// <li>XEP-0199 (XMPP Ping) [Timer-based ping/pong still a WIP]</li> |
| 72 | +/// </ul> |
| 73 | +/// </li> |
| 74 | +/// </ul> |
| 75 | + |
| 76 | + |
| 77 | + |
49 | 78 | /// @addtogroup XMPP
|
| 79 | +/// @{ |
50 | 80 | /// Create and start an XMPP client:
|
51 | 81 | /// @code
|
52 | 82 | ///
|
|
101 | 131 | /// {}
|
102 | 132 | ///
|
103 | 133 | /// @endcode
|
104 |
| - |
105 |
| - |
106 |
| -/// @mainpage Iotivity XMPP Client |
107 |
| -/// |
108 |
| -/// @section intro Introduction |
109 |
| -/// |
110 |
| -/// The Iotivity XMPP Client is a basic C++ XMPP client implementation written to provide |
111 |
| -/// cross-platform support for XMPP for Iotivity and the CCF project. |
112 |
| -/// |
113 |
| -/// @section XMPP Support |
114 |
| -/// |
115 |
| -/// <ul> |
116 |
| -/// <li>RFC 6120 (XMPP Core)</li> |
117 |
| -/// <li>SASL |
118 |
| -/// <ul> |
119 |
| -/// <li>RFC 4616 (PLAIN)</li> |
120 |
| -/// </ul> |
121 |
| -/// </li> |
122 |
| -/// <li>XMPP Extensions |
123 |
| -/// <ul> |
124 |
| -/// <li>XEP-0077 (In-Band Registration)</li> |
125 |
| -/// </ul> |
126 |
| -/// </li> |
127 |
| -/// </ul> |
| 134 | +/// @} |
128 | 135 |
|
129 | 136 |
|
130 | 137 |
|
@@ -234,7 +241,7 @@ namespace Iotivity
|
234 | 241 | }
|
235 | 242 | }
|
236 | 243 |
|
237 |
| - // const static size_t DEFAULT_BUFFER_SIZE = 4096; |
| 244 | + // const static size_t DEFAULT_BUFFER_SIZE = 4096; |
238 | 245 |
|
239 | 246 | void XmppConnection::receive(XMLElement::Ptr &payload)
|
240 | 247 | {
|
@@ -987,6 +994,7 @@ namespace Iotivity
|
987 | 994 | onConnected().fire(XmppConnectedEvent(
|
988 | 995 | connect_error::SUCCESS));
|
989 | 996 | m_boundPromise.set_value(m_boundJabberId);
|
| 997 | + m_negotiatedPromise.set_value(); |
990 | 998 | }
|
991 | 999 | else
|
992 | 1000 | {
|
@@ -1486,7 +1494,7 @@ namespace Iotivity
|
1486 | 1494 | // Action runner for the XMPP client.
|
1487 | 1495 | struct XmppClientRunner: public ActionRunner<std::shared_ptr<IXmppConnection>, XmppContext>
|
1488 | 1496 | {
|
1489 |
| - XmppClientRunner(XmppClient &owner) /*: m_owner(owner)*/ {} |
| 1497 | + XmppClientRunner(XmppClient &) {} |
1490 | 1498 |
|
1491 | 1499 | protected:
|
1492 | 1500 | virtual std::thread createActionThread(std::shared_ptr<runner_queue> queue,
|
@@ -1527,9 +1535,6 @@ namespace Iotivity
|
1527 | 1535 | }
|
1528 | 1536 | });
|
1529 | 1537 | }
|
1530 |
| - |
1531 |
| - private: |
1532 |
| - // XmppClient &m_owner; |
1533 | 1538 | };
|
1534 | 1539 | /// @endcond
|
1535 | 1540 |
|
|
0 commit comments