XEP 0198

1.6 Documentation

«  XEP 0196   ::   Contents   ::   XEP 0199  »

XEP 0198

class slixmpp.plugins.xep_0198.XEP_0198(xmpp, config=None)[source]

XEP-0198: Stream Management

disconnected(event)[source]

Reset enabled state until we can resume/reenable.

request_ack(e=None)[source]

Request an ack from the server.

send_ack()[source]

Send the current ack count to the server.

session_end(event)[source]

Reset stream management state.

stanza = <module 'slixmpp.plugins.xep_0198.stanza' from '/home/docs/checkouts/readthedocs.org/user_builds/slixmpp/checkouts/slix-1.6.0/slixmpp/plugins/xep_0198/stanza.py'>

Stanza elements

Slixmpp: The Slick XMPP Library Copyright (C) 2012 Nathanael C. Fritz, Lance J.T. Stout This file is part of Slixmpp.

See the file LICENSE for copying permission.

class slixmpp.plugins.xep_0198.stanza.Ack(stream=None, xml=None, stype=None, sto=None, sfrom=None, sid=None, parent=None)[source]
get_h()[source]
interfaces = {'h'}
name = 'a'
namespace = 'urn:xmpp:sm:3'
set_h(val)[source]
setup(xml)[source]

Initialize the stanza’s XML contents.

Will return True if XML was generated according to the stanza’s definition instead of building a stanza object from an existing XML object.

Parameters

xml – An existing XML object to use for the stanza’s content instead of generating new XML.

class slixmpp.plugins.xep_0198.stanza.Enable(stream=None, xml=None, stype=None, sto=None, sfrom=None, sid=None, parent=None)[source]
get_resume()[source]
interfaces = {'max', 'resume'}
name = 'enable'
namespace = 'urn:xmpp:sm:3'
set_resume(val)[source]
setup(xml)[source]

Initialize the stanza’s XML contents.

Will return True if XML was generated according to the stanza’s definition instead of building a stanza object from an existing XML object.

Parameters

xml – An existing XML object to use for the stanza’s content instead of generating new XML.

class slixmpp.plugins.xep_0198.stanza.Enabled(stream=None, xml=None, stype=None, sto=None, sfrom=None, sid=None, parent=None)[source]
get_resume()[source]
interfaces = {'id', 'location', 'max', 'resume'}
name = 'enabled'
namespace = 'urn:xmpp:sm:3'
set_resume(val)[source]
setup(xml)[source]

Initialize the stanza’s XML contents.

Will return True if XML was generated according to the stanza’s definition instead of building a stanza object from an existing XML object.

Parameters

xml – An existing XML object to use for the stanza’s content instead of generating new XML.

class slixmpp.plugins.xep_0198.stanza.Failed(stream=None, xml=None, stype=None, sto=None, sfrom=None, sid=None, parent=None)[source]
interfaces = {}
name = 'failed'
namespace = 'urn:xmpp:sm:3'
setup(xml)[source]

Initialize the stanza’s XML contents.

Will return True if XML was generated according to the stanza’s definition instead of building a stanza object from an existing XML object.

Parameters

xml – An existing XML object to use for the stanza’s content instead of generating new XML.

class slixmpp.plugins.xep_0198.stanza.RequestAck(stream=None, xml=None, stype=None, sto=None, sfrom=None, sid=None, parent=None)[source]
interfaces = {}
name = 'r'
namespace = 'urn:xmpp:sm:3'
setup(xml)[source]

Initialize the stanza’s XML contents.

Will return True if XML was generated according to the stanza’s definition instead of building a stanza object from an existing XML object.

Parameters

xml – An existing XML object to use for the stanza’s content instead of generating new XML.

class slixmpp.plugins.xep_0198.stanza.Resume(stream=None, xml=None, stype=None, sto=None, sfrom=None, sid=None, parent=None)[source]
get_h()[source]
interfaces = {'h', 'previd'}
name = 'resume'
namespace = 'urn:xmpp:sm:3'
set_h(val)[source]
setup(xml)[source]

Initialize the stanza’s XML contents.

Will return True if XML was generated according to the stanza’s definition instead of building a stanza object from an existing XML object.

Parameters

xml – An existing XML object to use for the stanza’s content instead of generating new XML.

class slixmpp.plugins.xep_0198.stanza.Resumed(stream=None, xml=None, stype=None, sto=None, sfrom=None, sid=None, parent=None)[source]
get_h()[source]
interfaces = {'h', 'previd'}
name = 'resumed'
namespace = 'urn:xmpp:sm:3'
set_h(val)[source]
setup(xml)[source]

Initialize the stanza’s XML contents.

Will return True if XML was generated according to the stanza’s definition instead of building a stanza object from an existing XML object.

Parameters

xml – An existing XML object to use for the stanza’s content instead of generating new XML.

class slixmpp.plugins.xep_0198.stanza.StreamManagement(xml=None, parent=None)[source]
del_optional()[source]
del_required()[source]
get_optional()[source]
get_required()[source]
interfaces = {'optional', 'required'}
name = 'sm'
namespace = 'urn:xmpp:sm:3'
plugin_attrib = 'sm'
set_optional(val)[source]
set_required(val)[source]

«  XEP 0196   ::   Contents   ::   XEP 0199  »