Add -close method
This commit is contained in:
parent
4efd9d8881
commit
446490ebc5
2 changed files with 27 additions and 4 deletions
|
@ -79,6 +79,7 @@
|
|||
id <XMPPConnectionDelegate, OFObject> delegate;
|
||||
OFMutableDictionary *callbacks;
|
||||
XMPPAuthenticator *authModule;
|
||||
BOOL streamOpen;
|
||||
BOOL needsSession;
|
||||
BOOL encryptionRequired, encrypted;
|
||||
unsigned int lastID;
|
||||
|
@ -94,6 +95,7 @@
|
|||
@property (readonly, retain, getter=socket) OFTCPSocket *sock;
|
||||
@property (assign) BOOL encryptionRequired;
|
||||
@property (readonly) BOOL encrypted;
|
||||
@property (readonly) BOOL streamOpen;
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -106,6 +108,11 @@
|
|||
*/
|
||||
- (void)connect;
|
||||
|
||||
/**
|
||||
* Closes the stream to the XMPP service
|
||||
*/
|
||||
- (void)close;
|
||||
|
||||
/**
|
||||
* Checks the certificate presented by the server.
|
||||
* Throws SSLInvalidCertificateException on failure.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue