Add -[parseBuffer:withSize:] to XMPPConnection.
This commit is contained in:
parent
2554b3a778
commit
673daaf20b
2 changed files with 26 additions and 0 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue