xmpp.transports.TLS

Package xmpp :: Module transports :: Class TLS |
[hide private]
[frames] | no frames]

# Class TLS

source code

    client.PlugIn --+
                    |
                   TLS

TLS connection used to encrypts already estabilished tcp connection.

Instance Methods | [hide private]
PlugIn(self, owner, now=0) If the 'now' argument is true then starts using encryption immidiatedly. | source code
plugout(self, now=0) Unregisters TLS handler's from owner's dispatcher. | source code
FeaturesHandler(self, conn, feats) Used to analyse server <features/> tag for TLS support. | source code
pending_data(self, timeout=0) Returns true if there possible is a data ready to be read. | source code
_startSSL(self) Immidiatedly switch socket to TLS mode. | source code
StartTLSHandler(self, conn, starttls) Handle server reply if TLS is allowed to process. | source code
Inherited from `client.PlugIn`: `DEBUG`, `PlugOut`, `__init__`

Method Details | [hide private]

### PlugIn(self, owner, now=0) | source code
If the 'now' argument is true then starts using encryption immidiatedly. If 'now' in false then starts encryption as soon as TLS feature is declared by the server (if it were already declared - it is ok). Overrides: client.PlugIn.PlugIn

### plugout(self, now=0) | source code
Unregisters TLS handler's from owner's dispatcher. Take note that encription can not be stopped once started. You can only break the connection and start over.

### FeaturesHandler(self, conn, feats) | source code
Used to analyse server <features/> tag for TLS support. If TLS is supported starts the encryption negotiation. Used internally

### _startSSL(self) | source code
Immidiatedly switch socket to TLS mode. Used internally.

### StartTLSHandler(self, conn, starttls) | source code
Handle server reply if TLS is allowed to process. Behaves accordingly. Used internally.