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

@ -90,6 +90,9 @@
@property (readonly, retain) XMPPRoster *roster;
#endif
/**
* \return A new autoreleased XMPPConnection
*/
+ connection;
/**
@ -102,6 +105,18 @@
*/
- (void)handleConnection;
/**
* Parses the specified buffer.
*
* This is useful for handling multiple connections at once.
*
* \param buf The buffer to parse
* \param size The size of the buffer. If size is 0, it is assumed that the
* connection was closed.
*/
- (void)parseBuffer: (const char*)buf
withSize: (size_t)size;
/**
* Sends an OFXMLElement, usually an XMPPStanza.
*