Overview
Comment: | Handle resource binding |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
28b1848edc583f89fe9090bd831f1293 |
User & Date: | florob@babelmonkeys.de on 2011-02-10 15:36:09 |
Other Links: | manifest | tags |
Context
2011-02-10
| ||
21:11 | Use int8_t instead of char check-in: ecd03f5b47 user: florob@babelmonkeys.de tags: trunk | |
15:36 | Handle resource binding check-in: 28b1848edc user: florob@babelmonkeys.de tags: trunk | |
02:54 | Add stanza classes XMPPStanza, XMPPIQ, XMPPMessage and XMPPPresence check-in: 109b15316d user: florob@babelmonkeys.de tags: trunk | |
Changes
Modified XMPPConnection.m from [65b3fffac0] to [81e5ef57ad].
︙ | ︙ | |||
184 185 186 187 188 189 190 191 192 193 194 195 196 197 | return; } if ([elem.name isEqual: @"failure"]) of_log(@"Auth failed!"); // FIXME: Handle! } } - (void)elementBuilder: (OFXMLElementBuilder*)b didNotExpectCloseTag: (OFString*)name withPrefix: (OFString*)prefix namespace: (OFString*)ns { | > > > > > > > > > > > | 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 | return; } if ([elem.name isEqual: @"failure"]) of_log(@"Auth failed!"); // FIXME: Handle! } if ([elem.name isEqual: @"iq"] && [elem.namespace isEqual: NS_CLIENT]) { XMPPIQ *iq = [XMPPIQ stanzaWithElement: elem]; if ([iq.ID isEqual: @"bind0"] && [iq.type isEqual: @"result"]) { OFXMLElement *bindElem = iq.children.firstObject; OFXMLElement *jidElem = bindElem.children.firstObject; of_log(@"Bound to JID: %@", [jidElem.children.firstObject stringValue]); } } } - (void)elementBuilder: (OFXMLElementBuilder*)b didNotExpectCloseTag: (OFString*)name withPrefix: (OFString*)prefix namespace: (OFString*)ns { |
︙ | ︙ |