tcp.py 281 B

123456789101112131415
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. """
  4. demeter web
  5. name:tcp.py
  6. author:rabin
  7. """
  8. from demeter.tcp import *
  9. from demeter.mqtt import *
  10. if __name__ == '__main__':
  11. print "Server start ......"
  12. server = Server()
  13. server.listen(8000)
  14. IOLoop.instance().start()