summaryrefslogtreecommitdiffstats
path: root/Lib/asyncore.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2001-10-03 17:07:25 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2001-10-03 17:07:25 (GMT)
commit4602c1b702c32331c2204cf741a51f8f2db3edf9 (patch)
tree3abb0fbca499c956bca34e92ec6c5449d50c9717 /Lib/asyncore.py
parent4a5a2bc2b66f9a4a2e390dbf8d0cf0c362a0f409 (diff)
downloadcpython-4602c1b702c32331c2204cf741a51f8f2db3edf9.zip
cpython-4602c1b702c32331c2204cf741a51f8f2db3edf9.tar.gz
cpython-4602c1b702c32331c2204cf741a51f8f2db3edf9.tar.bz2
Set .addr in a few more places (patch approved by Sam Rushing)
Diffstat (limited to 'Lib/asyncore.py')
-rw-r--r--Lib/asyncore.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py
index 5175002..e970162 100644
--- a/Lib/asyncore.py
+++ b/Lib/asyncore.py
@@ -201,6 +201,7 @@ class dispatcher:
# I think it should inherit this anyway
self.socket.setblocking (0)
self.connected = 1
+ self.addr = sock.getpeername()
def __repr__ (self):
try:
@@ -306,6 +307,7 @@ class dispatcher:
return
else:
raise socket.error, why
+ self.addr = address
self.connected = 1
self.handle_connect()