projects
/
mudpy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported from archive.
[mudpy.git]
/
muff
/
muffsock.py
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
(file)
--- 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
# hack to load all modules in the muff package
import muff
+import muffuniv
for module in muff.__all__:
exec("import " + module)
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.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
# bind the socket to to our desired server ipa and port
- newsocket.bind((muff
conf.get("network", "host"), muffconf.getint("network",
"port")))
+ newsocket.bind((muff
univ.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)
# disable blocking so we can proceed whether or not we can send/receive
newsocket.setblocking(0)