ObjXMPP  Check-in [c322888ad7]

Overview
Comment:Add support for requesting a certain resource
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: c322888ad74cc2761c6255f8aa8bb4f87ed78d420c47f4c9a7bd8f9c4aa211e4
User & Date: florob@babelmonkeys.de on 2011-02-13 01:07:36
Other Links: manifest | tags
Context
2011-02-15
02:52
Perform SASLPrep on the username and Resourceprep on the resource check-in: ea9006fa33 user: florob@babelmonkeys.de tags: trunk
2011-02-13
01:07
Add support for requesting a certain resource check-in: c322888ad7 user: florob@babelmonkeys.de tags: trunk
00:36
Add a class for handling JIDs. check-in: 150f2fa932 user: florob@babelmonkeys.de tags: trunk
Changes

Modified src/XMPPConnection.m from [91413b016c] to [620a05ff31].

203
204
205
206
207
208
209
210
211






212
213
214
215
216
217
218
203
204
205
206
207
208
209


210
211
212
213
214
215
216
217
218
219
220
221
222







-
-
+
+
+
+
+
+








	[self sendStanza: authTag];
}

- (void)_sendResourceBind
{
	XMPPIQ *iq = [XMPPIQ IQWithType: @"set" ID: @"bind0"];
	[iq addChild: [OFXMLElement elementWithName: @"bind"
					  namespace: NS_BIND]];
	OFXMLElement *bind = [OFXMLElement elementWithName: @"bind"
						 namespace: NS_BIND];
	if (resource)
		[bind addChild: [OFXMLElement elementWithName: @"resource"
						  stringValue: resource]];
	[iq addChild: bind];

	[self sendStanza: iq];
}

- (void)_handleResourceBind: (XMPPIQ*)iq
{
	OFXMLElement *bindElem = iq.children.firstObject;