WIP: Moving along

Getting closer to handling
This commit is contained in:
Brian Martin 2019-01-30 02:24:02 -05:00
parent 2e874307ed
commit 134d698eeb
4 changed files with 172 additions and 104 deletions

View file

@ -4,14 +4,20 @@ import logging
import bumper
import sys, socket
logging.basicConfig(level=logging.INFO,
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s %(levelname)-8s %(message)s')
conf_address = (socket.gethostbyname(socket.gethostname()), 8007)
xmpp_address = (socket.gethostbyname(socket.gethostname()), 5223)
#conf_address = (socket.gethostbyname(socket.gethostname()), 443)
conf_address = ("0.0.0.0", 443)
#xmpp_address = (socket.gethostbyname(socket.gethostname()), 5223)
xmpp_address = ("0.0.0.0", 5223)
#mqtt_address = (socket.gethostbyname(socket.gethostname()), 8883)
mqtt_address = ("0.0.0.0", 8883)
# start conf server (async)
conf_server = bumper.ConfServer(conf_address, ssl=False, async=True)
conf_server = bumper.ConfServer(conf_address, usessl=True, run_async=True)
# start mqtt server (async)
mqtt_server = bumper.MQTTServer(mqtt_address, run_async=True)
# start xmpp server (sync)
xmpp_server = bumper.XMPPServer(xmpp_address)