Add -[parseBuffer:withSize:] to XMPPConnection.
This commit is contained in:
parent
2554b3a778
commit
673daaf20b
2 changed files with 26 additions and 0 deletions
|
@ -229,6 +229,17 @@
|
|||
}
|
||||
}
|
||||
|
||||
- (void)parseBuffer: (const char*)buf
|
||||
withSize: (size_t)size
|
||||
{
|
||||
if (size < 1 && [delegate respondsToSelector:
|
||||
@selector(connectionWasClosed:)])
|
||||
[delegate connectionWasClosed: self];
|
||||
|
||||
[parser parseBuffer: buf
|
||||
withSize: size];
|
||||
}
|
||||
|
||||
- (void)sendStanza: (OFXMLElement*)elem
|
||||
{
|
||||
of_log(@"Out: %@", elem);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue