Add -[parseBuffer:withSize:] to XMPPConnection.

This commit is contained in:
Jonathan Schleifer 2011-04-01 04:23:18 +02:00
parent 2554b3a778
commit 673daaf20b
2 changed files with 26 additions and 0 deletions

View file

@ -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);