ObjXMPP  Diff

Differences From Artifact [30a48b2ec0]:

To Artifact [63ae59d595]:


84
85
86
87
88
89
90

91
92
93
94
95
96
97

#ifdef OF_HAVE_PROPERTIES
@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;








>







84
85
86
87
88
89
90
91
92
93
94
95
96
97
98

#ifdef OF_HAVE_PROPERTIES
@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;
@property (readonly, retain, getter=socket) OFTCPSocket *sock;
#endif

/**
 * \return A new autoreleased XMPPConnection
 */
+ connection;

113
114
115
116
117
118
119





120
121
122
123
124
125
126
 * \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;








>
>
>
>
>







114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
 * \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;

/**
 * \return The socket used by the XMPPConnection
 */
- (OFTCPSocket*)socket;

/**
 * Sends an OFXMLElement, usually an XMPPStanza.
 *
 * \param elem The element to send
 */
- (void)sendStanza: (OFXMLElement*)elem;