122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
|
}
[conn setDomain: [arguments objectAtIndex: 0]];
[conn setUsername: [arguments objectAtIndex: 1]];
[conn setPassword: [arguments objectAtIndex: 2]];
[conn setResource: @"ObjXMPP"];
[conn asyncConnectAndHandle];
}
- (void)connection: (XMPPConnection *)conn
didReceiveElement: (OFXMLElement *)element
{
of_log(@"In: %@", element);
}
|
|
|
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
|
}
[conn setDomain: [arguments objectAtIndex: 0]];
[conn setUsername: [arguments objectAtIndex: 1]];
[conn setPassword: [arguments objectAtIndex: 2]];
[conn setResource: @"ObjXMPP"];
[conn asyncConnect];
}
- (void)connection: (XMPPConnection *)conn
didReceiveElement: (OFXMLElement *)element
{
of_log(@"In: %@", element);
}
|