86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
@property (copy) OFString *username, *password, *server, *resource;
@property (copy, readonly) XMPPJID *JID;
@property (assign) uint16_t port;
@property (retain) id <XMPPConnectionDelegate> delegate;
@property (readonly, retain) XMPPRoster *roster;
#endif
/**
* \return A new autoreleased XMPPConnection
*/
+ connection;
/**
* Connects to the XMPP service.
*/
- (void)connect;
/**
* Starts a loop handling incomming data.
*/
- (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.
*
* \param elem The element to send
*/
- (void)sendStanza: (OFXMLElement*)elem;
|