# Path: pyxmpp/all.py

# 
# Path: pyxmpp/jabber/all.py



import libxml2
import time
import sys
import traceback
import socket
import logging
from pyxmpp.all import JID,Iq,Presence,Message,StreamError
from pyxmpp.jabber.all import LegacyClientStream
#!/usr/bin/python -u



accounts={
        u'test': '123',
    };

class Stream(LegacyClientStream):
    def state_change(self,state,arg):
        print "*** State changed: %s %r ***" % (state,arg)
        if state=="authorized":
            self.disconnect_time=time.time()+60
            if not self.version:
                self.welcome()
                return

# Path: pyxmpp/all.py

# 
# Path: pyxmpp/jabber/all.py



# Path: examples/server_c2s.py
import libxml2
import time
import sys
import traceback
import socket
import logging
from pyxmpp.all import JID,Iq,Presence,Message,StreamError
from pyxmpp.jabber.all import LegacyClientStream

#!/usr/bin/python -u



accounts={
        u'test': '123',
    };

class Stream(LegacyClientStream):
    def state_change(self,state,arg):
        print "*** State changed: %s %r ***" % (state,arg)
        if state=="authorized":
            self.disconnect_time=time.time()+60
            if not self.version:
                self.welcome()
                return

            self.set_iq_set_handler("session","urn:ietf:params:xml:ns:xmpp-session",