Differences From Artifact [376ec31f52]:
- File
XMPPConnection.m
— part of check-in
[acb2c5cbf0]
at
2011-02-08 19:45:21
on branch trunk
— Initial commit.
Work done by me and Florian Zeitz. (user: js, size: 4546) [annotate] [blame] [check-ins using]
To Artifact [65b3fffac0]:
- File XMPPConnection.m — part of check-in [109b15316d] at 2011-02-10 02:54:08 on branch trunk — Add stanza classes XMPPStanza, XMPPIQ, XMPPMessage and XMPPPresence (user: florob@babelmonkeys.de, size: 4509) [annotate] [blame] [check-ins using]
1 2 3 4 5 6 7 8 | #import "XMPPConnection.h" #define NS_BIND @"urn:ietf:params:xml:ns:xmpp-bind" #define NS_CLIENT @"jabber:client" #define NS_SASL @"urn:ietf:params:xml:ns:xmpp-sasl" #define NS_STREAM @"http://etherx.jabber.org/streams" @implementation XMPPConnection | > | 1 2 3 4 5 6 7 8 9 | #import "XMPPConnection.h" #import "XMPPStanza.h" #define NS_BIND @"urn:ietf:params:xml:ns:xmpp-bind" #define NS_CLIENT @"jabber:client" #define NS_SASL @"urn:ietf:params:xml:ns:xmpp-sasl" #define NS_STREAM @"http://etherx.jabber.org/streams" @implementation XMPPConnection |
︙ | ︙ | |||
131 132 133 134 135 136 137 | [message stringByBase64Encoding]]]; [sock writeString: [authTag stringValue]]; } - (void)_sendResourceBind { | < | | 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 | [message stringByBase64Encoding]]]; [sock writeString: [authTag stringValue]]; } - (void)_sendResourceBind { XMPPIQ *iq = [XMPPIQ IQWithType: @"set" ID: @"bind0"]; [iq addChild: [OFXMLElement elementWithName: @"bind" namespace: NS_BIND]]; [sock writeString: [iq stringValue]]; } - (void)_handleFeatures: (OFXMLElement*)elem |
︙ | ︙ |