Add a delegate for incoming/outgoing elements.
This commit is contained in:
parent
4aaa754a4d
commit
fdf33f356a
3 changed files with 25 additions and 2 deletions
12
tests/test.m
12
tests/test.m
|
@ -111,6 +111,18 @@ OF_APPLICATION_DELEGATE(AppDelegate)
|
|||
}
|
||||
}
|
||||
|
||||
- (void)connection: (XMPPConnection*)conn
|
||||
didReceiveElement: (OFXMLElement*)element
|
||||
{
|
||||
of_log(@"In: %@", element);
|
||||
}
|
||||
|
||||
- (void)connection: (XMPPConnection*)conn
|
||||
didSendElement: (OFXMLElement*)element
|
||||
{
|
||||
of_log(@"Out: %@", element);
|
||||
}
|
||||
|
||||
- (void)connectionWasAuthenticated: (XMPPConnection*)conn
|
||||
{
|
||||
of_log(@"Auth successful");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue