Imported from archive.
[mudpy.git] / muff / muffsock.py
similarity index 91%
rename from lib/muff/muffsock.py
rename to muff/muffsock.py
index fe47061..a3b18ab 100644 (file)
@@ -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)