19 lines
518 B
Python
19 lines
518 B
Python
#!/usr/bin/env python3
|
|
|
|
import logging
|
|
import bumper
|
|
import sys, socket
|
|
|
|
logging.basicConfig(level=logging.INFO,
|
|
format='%(asctime)s %(levelname)-8s %(message)s')
|
|
|
|
conf_address = (socket.gethostbyname(socket.gethostname()), 8007)
|
|
xmpp_address = (socket.gethostbyname(socket.gethostname()), 5223)
|
|
|
|
# start conf server (async)
|
|
conf_server = bumper.ConfServer(conf_address, ssl=False, async=True)
|
|
|
|
# start xmpp server (sync)
|
|
xmpp_server = bumper.XMPPServer(xmpp_address)
|
|
|
|
conf_server.disconnect()
|