X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=muff%2Fmuffsock.py;fp=lib%2Fmuff%2Fmuffsock.py;h=a3b18ab931fc908fb70a1b370c154f4e00e6e2ff;hp=fe4706190282e04d010a82f658bbbccdd6d6a687;hb=fecd4c0fc49593052697b8cf199603cf1fac2b61;hpb=724736a86ae223448f90a6d3a15adacd035feaa5 diff --git a/lib/muff/muffsock.py b/muff/muffsock.py similarity index 91% rename from lib/muff/muffsock.py rename to muff/muffsock.py index fe47061..a3b18ab 100644 --- a/lib/muff/muffsock.py +++ b/muff/muffsock.py @@ -8,6 +8,7 @@ import socket # hack to load all modules in the muff package import muff +import muffuniv for module in muff.__all__: exec("import " + module) @@ -50,7 +51,7 @@ def initialize_server_socket(): newsocket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) # bind the socket to to our desired server ipa and port - newsocket.bind((muffconf.get("network", "host"), muffconf.getint("network", "port"))) + newsocket.bind((muffuniv.universe.categories["internal"]["network"].get("host"), muffuniv.universe.categories["internal"]["network"].getint("port"))) # disable blocking so we can proceed whether or not we can send/receive newsocket.setblocking(0)