blob: cdec036bc920d8beeca7230342780a115fd67eca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/usr/bin/env python
import logging
from SimpleBackend import SimpleBackend
from HTTPFrontend import HTTPFrontend
from Component import Component
# Uncomment the following line to turn on debugging
#logging.basicConfig(level=logging.DEBUG, format='%(levelname)-8s %(message)s')
def main() :
backend = SimpleBackend()
component = Component(
jid = "posts.cheshir.lit", password = "mypass",
server = "cheshir.lit", port = 5347, backend = backend)
component.start()
httpFrontend = HTTPFrontend(8080, backend)
httpFrontend.start()
if __name__ == '__main__' :
main()
|