Module Assign NameStore Str Expr Str ImportFrom alias Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad If NameLoad body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad If CompareEq AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr SubscriptLoad Repr Call AttributeLoad NameLoad attr Slice Num orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad For NameStore ListLoad NameLoad NameLoad NameLoad NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr Str body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr orelse Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Num handlers ExceptHandler body Assign NameStore Str If Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Repr Call AttributeLoad NameLoad attr Str NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Raise Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str orelse If CompareEq Call NameLoad NameLoad Call NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse AugAssignAdd AttributeStore NameLoad attr NameLoad If CompareGtE AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If BoolOpOr CompareGtE AttributeLoad NameLoad attr NameLoad CompareGtE AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad keyword Num For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad keyword Num Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad Dict ListLoad ListLoad Return orelse If CompareGtE AttributeLoad NameLoad attr NameLoad body For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str AugAssignAdd AttributeStore NameLoad attr NameLoad AugAssignAdd AttributeStore NameLoad attr Call NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Str Return Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Repr Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad Str AugAssignAdd AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr While BoolOpAnd AttributeLoad NameLoad attr CompareGt AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num body Delete SubscriptDel AttributeLoad NameLoad attr Index SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str AugAssignAdd AttributeStore AttributeLoad NameLoad attr attr Num If BoolOpOr CompareEq AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Str Dict body Expr Str If BoolOpOr UnaryOpNot Call AttributeLoad NameLoad attr Str UnaryOpNot SubscriptLoad NameLoad Index Str body Return Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str If UnaryOpNot Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Str Dict body Expr Str Assign NameStore Str If CompareEq AttributeLoad NameLoad attr Str body AugAssignAdd NameStore BinOpMod Str AttributeLoad NameLoad attr orelse AugAssignAdd NameStore BinOpMod Str AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad NameLoad attr Str body AugAssignAdd NameStore BinOpMod Str SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num orelse AugAssignAdd NameStore BinOpMod Str SubscriptLoad NameLoad Index Str If Call AttributeLoad NameLoad attr Str body AugAssignAdd NameStore BinOpMod Str SubscriptLoad NameLoad Index Str If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore NameLoad AugAssignAdd NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad If BoolOpOr Call AttributeLoad NameLoad attr Str CompareEq AttributeLoad NameLoad attr Str body AugAssignAdd NameStore Str Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad If CompareEq AttributeLoad NameLoad attr Str body Return If CompareNotEq NameLoad Str body Return Call AttributeLoad NameLoad attr NameLoad If CompareNotEq NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad If CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr Str body Return Call AttributeLoad NameLoad attr NameLoad If CompareNotIn SubscriptLoad NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr body Return Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad Str If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad For NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad orelse If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareNotIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str If CompareGtE AttributeLoad NameLoad attr NameLoad body Return Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Num body Expr Str If CompareGtE AttributeLoad NameLoad attr NameLoad body Return If CompareLt AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Num If NameLoad body If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Raise BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareNotEq AttributeLoad NameLoad attr NameLoad body Raise BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareLt AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareLt AttributeLoad NameLoad attr NameLoad body If BoolOpAnd CompareLt AttributeLoad NameLoad attr NameLoad CompareGtE NameLoad NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareLt AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list
N/A N/A __version__ $Id N/A 
When your handler is called it is getting the session instance as the first argument.
This is the difference from xmpppy 0.1 where you got the "Client" instance.
With Session class you can have "multi-session" client instead of having
one client for each connection. Is is specifically important when you are
writing the server.
 protocol * N/A SOCKET_UNCONNECTED 0 N/A SOCKET_ALIVE 1 N/A SOCKET_DEAD 2 N/A STREAM__NOT_OPENED 1 N/A STREAM__OPENED 2 N/A STREAM__CLOSING 3 N/A STREAM__CLOSED 4 N/A SESSION_NOT_AUTHED 1 N/A SESSION_AUTHED 2 N/A SESSION_BOUND 3 N/A SESSION_OPENED 4 N/A SESSION_CLOSED 5 Session N/A N/A N/A 
    The Session class instance is used for storing all session-related info like 
    credentials, socket/xml stream/session state flags, roster items (in case of
    client type connection) etc.
    Session object have no means of discovering is any info is ready to be read.
    Instead you should use poll() (recomended) or select() methods for this purpose.
    Session can be one of two types: 'server' and 'client'. 'server' session handles
    inbound connection and 'client' one used to create an outbound one.
    Session instance have multitude of internal attributes. The most imporant is the 'peer' one.
    It is set once the peer is authenticated (client).
     __init__ N/A N/A self socket owner xmlns peer N/A None None N/A N/A  When the session is created it's type (client/server) is determined from the beginning.
            socket argument is the pre-created socket-like object.
            It must have the following methods: send, recv, fileno, close.
            owner is the 'master' instance that have Dispatcher plugged into it and generally
            will take care about all session events.
            xmlns is the stream namespace that will be used. Client must set this argument
            If server sets this argument than stream will be dropped if opened with some another namespace.
            peer is the name of peer instance. This is the flag that differentiates client session from
            server session. Client must set it to the name of the server that will be connected, server must
            leave this argument alone.
             N/A N/A self xmlns xmlns N/A peer N/A N/A N/A self TYP client N/A N/A self peer peer N/A N/A self _socket_state SOCKET_UNCONNECTED N/A N/A N/A self TYP server N/A N/A self peer None N/A N/A self _socket_state SOCKET_ALIVE N/A N/A self _sock socket N/A N/A self _send N/A socket send N/A N/A self _recv N/A socket recv N/A N/A self fileno N/A socket fileno N/A N/A self _registered 0 N/A N/A self Dispatcher N/A owner Dispatcher N/A N/A self DBG_LINE session N/A N/A self DEBUG N/A N/A owner Dispatcher DEBUG N/A N/A self _expected N/A N/A N/A self _owner owner N/A N/A N/A self TYP server N/A N/A N/A self ID N/A N/A N/A N/A random random N/A 2 N/A N/A N/A self ID None N/A N/A self sendbuffer N/A N/A self _stream_pos_queued None N/A N/A self _stream_pos_sent 0 N/A N/A self deliver_key_queue N/A N/A N/A self deliver_queue_map N/A N/A N/A self stanza_queue N/A N/A N/A self _session_state SESSION_NOT_AUTHED N/A N/A self waiting_features N/A N/A feature N/A NS_TLS NS_SASL NS_BIND NS_SESSION N/A N/A N/A feature N/A owner features N/A N/A N/A N/A N/A self waiting_features append feature N/A N/A self features N/A N/A N/A self feature_in_process None N/A N/A self slave_session None N/A N/A N/A self StartStream N/A StartStream N/A N/A self N/A N/A N/A  This method is used to initialise the internal xml expat parser
            and to send initial stream header (in case of client connection).
            Should be used after initial connection and after every stream restart. N/A N/A self _stream_state STREAM__NOT_OPENED N/A N/A self Stream N/A N/A simplexml NodeBuilder N/A N/A N/A self Stream _dispatch_depth 2 N/A N/A N/A self Stream dispatch N/A self _dispatch N/A N/A self Parse N/A N/A self Stream Parse N/A N/A N/A self Stream stream_footer_received N/A self _stream_close N/A N/A N/A self TYP client N/A N/A N/A N/A self Stream stream_header_received N/A self _catch_stream_id N/A N/A N/A self _stream_open N/A N/A N/A N/A self Stream stream_header_received N/A self _stream_open N/A receive N/A N/A self N/A N/A N/A  Reads all pending incoming data.
            Raises IOError on disconnection.
            Blocks until at least one byte is read. N/A N/A N/A received N/A N/A self _recv 10240 N/A N/A N/A N/A received N/A N/A len received N/A N/A N/A N/A self DEBUG N/A N/A N/A N/A N/A self fileno received got N/A N/A N/A N/A self DEBUG Socket error while receiving data error N/A N/A N/A self set_socket_state SOCKET_DEAD N/A N/A IOError Peer disconnected N/A received N/A sendnow N/A N/A self chunk N/A N/A N/A  Put chunk into "immidiatedly send" queue.
            Should only be used for auth/TLS stuff and like.
            If you just want to shedule regular stanza for delivery use enqueue method.
         N/A N/A isinstance chunk Node N/A N/A chunk N/A N/A N/A N/A chunk __str__ encode utf-8 N/A N/A N/A N/A type chunk N/A type N/A N/A chunk N/A N/A chunk encode utf-8 N/A N/A N/A self enqueue chunk N/A enqueue N/A N/A self stanza N/A N/A N/A  Takes Protocol instance as argument.
            Puts stanza into "send" fifo queue. Items into the send queue are hold until
            stream authenticated. After that this method is effectively the same as "sendnow" method. N/A N/A isinstance stanza Protocol N/A N/A N/A N/A N/A self stanza_queue append stanza N/A N/A N/A self sendbuffer stanza N/A N/A N/A self _socket_state SOCKET_ALIVE N/A N/A N/A N/A self push_queue N/A push_queue N/A N/A self failreason N/A ERR_RECIPIENT_UNAVAILABLE N/A N/A  If stream is authenticated than move items from "send" queue to "immidiatedly send" queue.
            Else if the stream is failed then return all queued stanzas with error passed as argument.
            Otherwise do nothing. N/A N/A N/A N/A self _stream_state STREAM__CLOSED N/A N/A self _socket_state SOCKET_DEAD N/A N/A N/A N/A N/A self _owner deactivatesession self N/A key N/A self deliver_key_queue N/A N/A N/A N/A self _dispatch N/A Error N/A N/A self deliver_queue_map N/A key failreason trusted 1 N/A stanza N/A self stanza_queue N/A N/A N/A N/A self _dispatch N/A Error stanza failreason trusted 1 N/A N/A N/A self deliver_queue_map N/A self deliver_key_queue N/A self stanza_queue N/A N/A N/A N/A N/A N/A N/A N/A N/A self _session_state SESSION_AUTHED N/A N/A stanza N/A self stanza_queue N/A N/A txt N/A N/A N/A N/A stanza __str__ encode utf-8 N/A N/A self sendbuffer txt N/A N/A self _stream_pos_queued N/A len txt N/A N/A N/A self deliver_queue_map N/A N/A self _stream_pos_queued stanza N/A N/A N/A N/A self deliver_key_queue append N/A self _stream_pos_queued N/A N/A self stanza_queue N/A N/A flush_queue N/A N/A self N/A N/A N/A  Put the "immidiatedly send" queue content on the wire. Blocks until at least one byte sent. N/A N/A self sendbuffer N/A N/A N/A N/A sent N/A N/A self _send N/A self sendbuffer N/A N/A N/A N/A N/A N/A self set_socket_state SOCKET_DEAD N/A N/A N/A self DEBUG Socket error while sending data error N/A N/A N/A self terminate_stream N/A N/A N/A self DEBUG N/A N/A N/A N/A N/A self fileno N/A N/A self sendbuffer N/A sent sent N/A N/A self _stream_pos_sent sent N/A N/A self sendbuffer N/A N/A self sendbuffer N/A sent N/A N/A self _stream_pos_delivered N/A self _stream_pos_sent N/A N/A N/A self deliver_key_queue N/A N/A self _stream_pos_delivered N/A N/A self deliver_key_queue N/A 0 N/A N/A N/A N/A self deliver_queue_map N/A N/A N/A self deliver_key_queue N/A 0 N/A N/A N/A N/A self deliver_key_queue remove N/A N/A self deliver_key_queue N/A 0 N/A _dispatch N/A N/A self stanza trusted N/A 0 N/A N/A  This is callback that is used to pass the received stanza forth to owner's dispatcher
            _if_ the stream is authorised. Otherwise the stanza is just dropped.
            The 'trusted' argument is used to emulate stanza receive.
            This method is used internally.
         N/A N/A N/A self _owner packets 1 N/A N/A N/A N/A self _stream_state STREAM__OPENED trusted N/A N/A N/A N/A self DEBUG N/A N/A stanza __str__ dispatch N/A N/A stanza trusted trusted N/A N/A N/A N/A self Dispatcher dispatch stanza self N/A _catch_stream_id N/A N/A self ns tag attrs N/A None stream N/A N/A N/A  This callback is used to detect the stream namespace of incoming stream. Used internally.  N/A N/A N/A N/A N/A attrs has_key id N/A N/A attrs N/A id N/A N/A N/A N/A self terminate_stream STREAM_INVALID_XML N/A N/A self ID N/A attrs N/A id N/A N/A N/A N/A attrs has_key version N/A N/A N/A N/A N/A self _owner Dialback self N/A _stream_open N/A N/A self ns tag attrs N/A None stream N/A N/A N/A  This callback is used to handle opening stream tag of the incoming stream.
            In the case of client session it just make some validation.
            Server session also sends server headers and if the stream valid the features node.
            Used internally.  N/A text <?xml version="1.0" encoding="utf-8"?>
<stream:stream N/A N/A N/A self TYP client N/A N/A text N/A  to="%s" N/A self peer N/A N/A text N/A  id="%s" N/A self ID N/A N/A N/A N/A attrs has_key to N/A N/A text N/A  from="%s" N/A N/A N/A self _owner servernames N/A 0 N/A N/A text N/A  from="%s" N/A attrs N/A to N/A N/A N/A attrs has_key xml:lang N/A N/A text N/A  xml:lang="%s" N/A attrs N/A xml:lang N/A N/A self xmlns N/A N/A xmlns N/A self xmlns N/A N/A xmlns NS_SERVER N/A text N/A  xmlns:db="%s" xmlns:stream="%s" xmlns="%s" N/A NS_DIALBACK NS_STREAMS xmlns N/A N/A N/A N/A attrs has_key version N/A N/A self TYP client N/A N/A text  version="1.0" N/A N/A N/A self sendnow N/A text > N/A N/A N/A self set_stream_state STREAM__OPENED N/A N/A N/A self TYP client N/A N/A N/A N/A tag stream N/A N/A N/A N/A self terminate_stream STREAM_INVALID_XML N/A N/A ns NS_STREAMS N/A N/A N/A N/A self terminate_stream STREAM_INVALID_NAMESPACE N/A N/A N/A N/A self Stream xmlns N/A self xmlns N/A N/A N/A N/A self terminate_stream STREAM_BAD_NAMESPACE_PREFIX N/A N/A N/A N/A attrs has_key to N/A N/A N/A N/A self terminate_stream STREAM_IMPROPER_ADDRESSING N/A N/A N/A attrs N/A to N/A N/A self _owner servernames N/A N/A N/A N/A self terminate_stream STREAM_HOST_UNKNOWN N/A N/A self ourname N/A N/A N/A attrs N/A to lower N/A N/A N/A N/A self TYP server N/A N/A attrs has_key version N/A N/A features N/A Node stream:features N/A N/A NS_TLS N/A self waiting_features N/A N/A N/A N/A N/A N/A features NT starttls setNamespace NS_TLS N/A N/A N/A N/A N/A features T starttls NT required N/A N/A NS_SASL N/A self waiting_features N/A N/A N/A N/A N/A N/A features NT mechanisms setNamespace NS_SASL N/A mec N/A N/A N/A self _owner SASL mechanisms N/A N/A N/A N/A N/A N/A features T mechanisms NT mechanism mec N/A N/A N/A NS_BIND N/A self waiting_features N/A N/A N/A N/A N/A N/A features NT bind setNamespace NS_BIND N/A N/A NS_SESSION N/A self waiting_features N/A N/A N/A N/A N/A N/A features NT session setNamespace NS_SESSION N/A N/A N/A self sendnow features N/A feature N/A N/A self feature N/A N/A N/A  Declare some stream feature as activated one.  N/A N/A feature N/A self features N/A N/A N/A N/A N/A self features append feature N/A N/A N/A self unfeature feature N/A unfeature N/A N/A self feature N/A N/A N/A  Declare some feature as illegal. Illegal features can not be used.
            Example: BIND feature becomes illegal after Non-SASL auth.  N/A N/A feature N/A self waiting_features N/A N/A N/A N/A N/A self waiting_features remove feature N/A _stream_close N/A N/A self unregister N/A 1 N/A N/A  Write the closing stream tag and destroy the underlaying socket. Used internally.  N/A N/A N/A self _stream_state STREAM__CLOSED N/A N/A N/A N/A N/A self set_stream_state STREAM__CLOSING N/A N/A N/A self sendnow </stream:stream> N/A N/A N/A self set_stream_state STREAM__CLOSED N/A N/A N/A self push_queue N/A N/A N/A N/A self _owner flush_queues N/A unregister N/A N/A N/A N/A N/A self _owner unregistersession self N/A N/A N/A self _destroy_socket N/A terminate_stream N/A N/A self error unregister N/A None 1 N/A N/A  Notify the peer about stream closure.
            Ensure that xmlstream is not brokes - i.e. if the stream isn't opened yet -
            open it before closure.
            If the error condition is specified than create a stream error and send it along with
            closing stream tag.
            Emulate receiving 'unavailable' type presence just before stream closure.
         N/A N/A N/A self _stream_state STREAM__CLOSING N/A N/A N/A N/A N/A self _stream_state STREAM__OPENED N/A N/A N/A N/A self set_stream_state STREAM__CLOSING N/A N/A N/A self _stream_open N/A N/A N/A N/A self set_stream_state STREAM__CLOSING N/A p N/A Presence typ unavailable N/A N/A N/A p setNamespace NS_CLIENT N/A N/A N/A self _dispatch p trusted 1 N/A error N/A N/A N/A isinstance error Node N/A N/A N/A N/A self sendnow error N/A N/A N/A N/A self sendnow N/A ErrorNode error N/A N/A N/A self _stream_close unregister unregister N/A N/A self slave_session N/A N/A N/A N/A N/A self slave_session terminate_stream STREAM_REMOTE_CONNECTION_FAILED N/A _destroy_socket N/A N/A self N/A N/A N/A  Break cyclic dependancies to let python's GC free memory right now. N/A N/A N/A self Stream dispatch None N/A N/A N/A self Stream stream_footer_received None N/A N/A N/A self Stream stream_header_received None N/A N/A N/A N/A self Stream destroy N/A N/A N/A N/A self _sock close N/A N/A N/A self set_socket_state SOCKET_DEAD N/A start_feature N/A N/A self f N/A N/A N/A  Declare some feature as "negotiating now" to prevent other features from start negotiating.  N/A N/A self feature_in_process N/A N/A N/A Starting feature %s over %s ! N/A f N/A self feature_in_process N/A N/A self feature_in_process f N/A stop_feature N/A N/A self f N/A N/A N/A  Declare some feature as "negotiated" to allow other features start negotiating.  N/A N/A N/A self feature_in_process f N/A N/A N/A Stopping feature %s instead of %s ! N/A f N/A self feature_in_process N/A N/A self feature_in_process None N/A set_socket_state N/A N/A self newstate N/A N/A N/A  Change the underlaying socket state.
            Socket starts with SOCKET_UNCONNECTED state
            and then proceeds (possibly) to SOCKET_ALIVE
            and then to SOCKET_DEAD  N/A N/A N/A self _socket_state newstate N/A N/A N/A self _socket_state newstate N/A set_session_state N/A N/A self newstate N/A N/A N/A  Change the session state.
            Session starts with SESSION_NOT_AUTHED state
            and then comes through 
            SESSION_AUTHED, SESSION_BOUND, SESSION_OPENED and SESSION_CLOSED states.
         N/A N/A N/A self _session_state newstate N/A N/A N/A N/A N/A self _session_state SESSION_AUTHED N/A newstate SESSION_AUTHED N/A N/A N/A self _stream_pos_queued N/A self _stream_pos_sent N/A N/A self _session_state newstate N/A set_stream_state N/A N/A self newstate N/A N/A N/A  Change the underlaying XML stream state
            Stream starts with STREAM__NOT_OPENED and then proceeds with
            STREAM__OPENED, STREAM__CLOSING and STREAM__CLOSED states.
            Note that some features (like TLS and SASL)
            requires stream re-start so this state can have non-linear changes.  N/A N/A N/A self _stream_state newstate N/A N/A N/A self _stream_state newstate N/A N/A