Authors
- Generated by builder
-
- Declared in:
- XMPPConnection.h
- Conforms to:
- XMPPInfoQueryStanzaHandler
The XMPPConnection class represents a connection to an
XMPP server. It is the root parser owner. All XML
received from the server is parsed by this class (or
delegated to others by this class). All sending of
XML data goes via this class.
Instance Variables
Method summary
- (void)
XMPPSend: (
NSString*)buffer;
Send the passed XML to the server.
- (void)
connectToJabberServer: (
NSString*)jabberServer
withJID: (
JID*)aJID
password: (
NSString*)password;
Connect to the specified Jabber server as the
specified user, with the given
password. This needs changing for cases
where the server is not that specified by the
client's JID.
- (void)
disconnect;
Disconnect from the Jabber server.
- (
XMPPDispatcher*)
dispatcher;
Returns the dispatcher associated with the
connection.
- (id)
initWithAccount: (id)anAccount;
Initialise the connection for a specified
account.
- (BOOL)
isConnected;
Returns YES
if connected to the
server.
- (
NSString*)
nextMessageID;
Returns a new connection-unique ID to be used with
iq set/get stanzas.
- (void)
reconnectToJabberServer;
Reconnect after disconnection.
- (
NSString*)
server;
Returns the server name.
- (void)
setPresenceDisplay: (id<
XMPPPresenceDisplay,
NSObject>)_display;
Sets the UI component used to display the presence.
This should definitely be replaced with a notification
based system.
- (void)
setStatus: (unsigned char)aStatus
withMessage: (
NSString*)aMessage;
Set the current status.
- (ETXMLSocketWriter*)
xmlWriter;
Returns the XML writer which can be used to send
XML to the stream.
Instance Variables for XMPPConnection Class
@protected id account;
Description forthcoming.
@protected XMPPDispatcher* dispatcher;
Description forthcoming.
@protected NSTimer* keepalive;
Description forthcoming.
@protected unsigned int messageID;
Description forthcoming.
@protected NSString* pass;
Description forthcoming.
@protected id presenceDisplay;
Description forthcoming.
@protected NSString* res;
Description forthcoming.
@protected XMPPRoster* roster;
Description forthcoming.
@protected NSString* server;
Description forthcoming.
@protected NSString* serverHost;
Description forthcoming.
@protected NSString* sessionID;
Description forthcoming.
@protected ETSocket* socket;
Description forthcoming.
@protected NSDictionary* streamFeatures;
Description forthcoming.
@protected NSMutableString* unsentBuffer;
Description forthcoming.
@protected NSString* user;
Description forthcoming.
@protected Class xmlLog;
Description forthcoming.
@protected ETXMLSocketWriter* xmlWriter;
Description forthcoming.