pyxmpp.streambase

Package pyxmpp :: Module streambase |
[show private | hide private]
[frames | no frames]

## Module pyxmpp.streambase

Core XMPP stream functionality.

Normative reference:
  - RFC 3920

Classes
`StreamBase` | Base class for a generic XMPP stream.

Exceptions
`FatalStreamError` | Base class for all fatal Stream exceptions.
`HostMismatch` | Exception raised when the connected host name is other then requested.
`StreamAuthenticationError` | Raised when stream authentication fails.
`StreamEncryptionRequired` | Exception raised when stream encryption is requested, but not used.
`StreamError` | Base class for all stream errors.
`StreamParseError` | Raised when invalid XML is received in an XMPP stream.

Function Summary
| ``stanza_factory`(xmlnode)` Creates Iq, Message or Presence object for XML stanza `xmlnode`

Variable Summary
`str` | `__revision__` = `'$Id: streambase.py 603 2005-10-14 16:06:...`
`str` | `BIND_NS` = `'urn:ietf:params:xml:ns:xmpp-bind'`
`str` | `STREAM_NS` = `'http://etherx.jabber.org/streams'`

Imported modules:
  `errno`, `libxml2`, `logging`, `os`, `random`, `pyxmpp.resolver`, `socket`, `threading`, `time`, `pyxmpp.xmlextra`
Imported classes:
  `ExpiringDictionary`, `Iq`, `JID`, `Message`, `Presence`, `Stanza`, `StanzaProcessor`, `StreamErrorNode`
Imported exceptions:
  `StanzaError`
Imported functions:
  `to_utf8`

Function Details

### stanza_factory(xmlnode) Creates Iq, Message or Presence object for XML stanza `xmlnode`

Variable Details

    ### __revision__ Type: `str` Value:
        '$Id: streambase.py 603 2005-10-14 16:06:24Z jajcus $'

    ### BIND_NS Type: `str` Value:
        'urn:ietf:params:xml:ns:xmpp-bind'

    ### STREAM_NS Type: `str` Value:
        'http://etherx.jabber.org/streams'