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]
/
lib
/
muff
/
muffsock.py
diff --git
a/lib/muff/muffsock.py
b/lib/muff/muffsock.py
index
67010b1
..
40fffa5
100644
(file)
--- a/
lib/muff/muffsock.py
+++ b/
lib/muff/muffsock.py
@@
-21,8
+21,7
@@
def check_for_connection(newsocket):
return None
# note that we got one
return None
# note that we got one
- # TODO: we should log this crap somewhere
- print "Connection from", address
+ muffmisc.log("Connection from " + address[0])
# disable blocking so we can proceed whether or not we can send/receive
connection.setblocking(0)
# disable blocking so we can proceed whether or not we can send/receive
connection.setblocking(0)
@@
-60,8
+59,7
@@
def initialize_server_socket():
newsocket.listen(1)
# note that we're now ready for user connections
newsocket.listen(1)
# note that we're now ready for user connections
- # TODO: we should log this crap somewhere
- print "Waiting for connection(s)..."
+ muffmisc.log("Waiting for connection(s)...")
# store this in a globally-accessible place
muffvars.newsocket = newsocket
# store this in a globally-accessible place
muffvars.newsocket = newsocket
@@
-70,8
+68,7
@@
def destroy_all_sockets():
"""Go through all connected users and close their sockets."""
# note that we're closing all sockets
"""Go through all connected users and close their sockets."""
# note that we're closing all sockets
- # TODO: we should log this crap somewhere
- print "Closing remaining connections..."
+ muffmisc.log("Closing remaining connections...")
# iterate over each connected user and close their associated sockets
for user in muffvars.userlist:
# iterate over each connected user and close their associated sockets
for user in muffvars.userlist: