Authors
- Generated by root
-
- Declared in:
- XMPPConnection.h
- Conforms to:
- IqHandler
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.
- (
Dispatcher*)
dispatcher;
Returns the dispatcher associated with the
connection.
- (id)
initWithAccount: (id)_account;
Initialise the connection for a specified
account.
- (NSString*)
newMessageID;
Returns a new connection-unique ID to be used with
iq set/get stanzas.
- (BOOL)
parseXMPP: (id)sender;
Read data from the socket and parse the incoming XML.
Returns NO
in case of error.
- (void)
reconnectToJabberServer;
Reconnect after disconnection.
- (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)_status
withMessage: (NSString*)_message;
Set the current status.
- (void)
setTimer: (NSTimer*)newTimer;
Use the given timer for periodic polling of the
connection.
Instance Variables for XMPPConnection Class
@protected BOOL SSLEnabled;
Description forthcoming.
@protected id account;
Description forthcoming.
@protected NSThread* connectThread;
Description forthcoming.
@protected NSLock* connectionMutex;
Description forthcoming.
@protected ConnectionState connectionState;
Description forthcoming.
@protected id currentNode;
Description forthcoming.
@protected Dispatcher* dispatcher;
Description forthcoming.
@protected unsigned int keepalive;
Description forthcoming.
@protected unsigned int messageID;
Description forthcoming.
@protected NSLock* messageIDMutex;
Description forthcoming.
@protected NSString* pass;
Description forthcoming.
@protected id presenceDisplay;
Description forthcoming.
@protected NSString* res;
Description forthcoming.
@protected Roster* roster;
Description forthcoming.
@protected int s;
Description forthcoming.
@protected NSString* server;
Description forthcoming.
@protected NSString* serverHost;
Description forthcoming.
@protected NSString* serverID;
Description forthcoming.
@protected NSString* sessionID;
Description forthcoming.
@protected SSL* ssl;
Description forthcoming.
@protected SSL_CTX* sslContext;
Description forthcoming.
@protected NSDictionary* streamFeatures;
Description forthcoming.
@protected NSTimer* timer;
Description forthcoming.
@protected NSMutableString* unsentBuffer;
Description forthcoming.
@protected NSString* user;
Description forthcoming.
@protected Class xmlLog;
Description forthcoming.
typedef enum _connectionState ConnectionState;
Enumeration used to define the states in the XMPP
Connection state machine.