149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
|
}
- (void)connection: (XMPPConnection*)conn_
wasBoundToJID: (XMPPJID*)jid
{
of_log(@"Bound to JID: %@", [jid fullJID]);
of_log(@"Supports SM: %@",
[conn_ supportsStreamManagement] ? @"YES" : @"NO");
XMPPDiscoEntity *discoEntity =
[[XMPPDiscoEntity alloc] initWithConnection: conn];
[discoEntity addIdentity:
[XMPPDiscoIdentity identityWithCategory: @"client"
type: @"pc"
|
|
|
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
|
}
- (void)connection: (XMPPConnection*)conn_
wasBoundToJID: (XMPPJID*)jid
{
of_log(@"Bound to JID: %@", [jid fullJID]);
of_log(@"Supports SM: %@",
[conn_ supportsStreamManagement] ? @"true" : @"false");
XMPPDiscoEntity *discoEntity =
[[XMPPDiscoEntity alloc] initWithConnection: conn];
[discoEntity addIdentity:
[XMPPDiscoIdentity identityWithCategory: @"client"
type: @"pc"
|
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
|
- (void)roster: (XMPPRoster*)roster_
didReceiveRosterItem: (XMPPRosterItem*)rosterItem
{
of_log(@"Got roster push: %@", rosterItem);
}
- (BOOL)connection: (XMPPConnection*)conn
didReceiveIQ: (XMPPIQ*)iq
{
of_log(@"IQ: %@", iq);
return NO;
}
|
|
|
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
|
- (void)roster: (XMPPRoster*)roster_
didReceiveRosterItem: (XMPPRosterItem*)rosterItem
{
of_log(@"Got roster push: %@", rosterItem);
}
- (bool)connection: (XMPPConnection*)conn
didReceiveIQ: (XMPPIQ*)iq
{
of_log(@"IQ: %@", iq);
return NO;
}
|