69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
OFXMLElementBuilder *elementBuilder, *oldElementBuilder;
OFString *username, *password, *server, *domain, *resource;
XMPPJID *JID;
uint16_t port;
id <XMPPConnectionDelegate, OFObject> delegate;
XMPPAuthenticator *authModule;
BOOL needsSession;
unsigned int lastID;
OFString *bindID, *sessionID;
XMPPRoster *roster;
}
#ifdef OF_HAVE_PROPERTIES
@property (copy) OFString *username, *password, *server, *domain, *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;
|
>
>
|
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
OFXMLElementBuilder *elementBuilder, *oldElementBuilder;
OFString *username, *password, *server, *domain, *resource;
XMPPJID *JID;
uint16_t port;
id <XMPPConnectionDelegate, OFObject> delegate;
XMPPAuthenticator *authModule;
BOOL needsSession;
BOOL encrypted;
unsigned int lastID;
OFString *bindID, *sessionID;
XMPPRoster *roster;
}
#ifdef OF_HAVE_PROPERTIES
@property (copy) OFString *username, *password, *server, *domain, *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;
@property (readonly) BOOL encrypted;
#endif
/**
* \return A new autoreleased XMPPConnection
*/
+ connection;
|
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
withLength: (size_t)length;
/**
* \return The socket used by the XMPPConnection
*/
- (OFTCPSocket*)socket;
/**
* Sends an OFXMLElement, usually an XMPPStanza.
*
* \param element The element to send
*/
- (void)sendStanza: (OFXMLElement*)element;
|
>
>
>
>
>
|
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
|
withLength: (size_t)length;
/**
* \return The socket used by the XMPPConnection
*/
- (OFTCPSocket*)socket;
/**
* \return Whether the connection is encrypted
*/
- (BOOL)encrypted;
/**
* Sends an OFXMLElement, usually an XMPPStanza.
*
* \param element The element to send
*/
- (void)sendStanza: (OFXMLElement*)element;
|