class documentation

class DummyXMPPHandler(xmlstream.XMPPHandler):

View In Hierarchy

Dummy XMPP subprotocol handler to count the methods are called on it.

Method __init__ Undocumented
Method connectionInitialized The XML stream has been initialized.
Method connectionLost The XML stream has been closed.
Method connectionMade Called after a connection has been established.
Method makeConnection A connection over the underlying transport of the XML stream has been established.
Instance Variable doneInitialized Undocumented
Instance Variable doneLost Undocumented
Instance Variable doneMade Undocumented

Inherited from XMPPHandler:

Method disownHandlerParent Remove the parent of the handler.
Method send Send data over the managed XML stream.
Method setHandlerParent Set the parent of the handler.
Instance Variable parent XML stream manager for this handler
Instance Variable xmlstream The managed XML stream
def connectionInitialized(self):

The XML stream has been initialized.

Can be overridden to perform work after stream initialization, e.g. to set up observers and start exchanging XML stanzas.

def connectionLost(self, reason):

The XML stream has been closed.

This method can be extended to inspect the reason argument and act on it.

def connectionMade(self):

Called after a connection has been established.

Can be overridden to perform work before stream initialization.

def makeConnection(self, xs):

A connection over the underlying transport of the XML stream has been established.

At this point, no traffic has been exchanged over the XML stream given in xs.

This should setup xmlstream and call connectionMade.

Parameters
xs:twisted.words.protocols.jabber.xmlstream.XmlStreamUndocumented
doneInitialized: int =

Undocumented

doneLost: int =

Undocumented

doneMade: int =

Undocumented