summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2013-10-11 10:10:06 -0700
committerGuido van Rossum <guido@python.org>2013-10-11 10:10:06 -0700
commit6e4419a3d2d5a3c6922b9eb8819c74d58a903168 (patch)
tree94fe1ee4053a9868150e58247fc5e99f976c1911 /examples
parentf043afbb398b71a35e28184b3ae77005373d0e92 (diff)
downloadtrollius-6e4419a3d2d5a3c6922b9eb8819c74d58a903168.tar.gz
Fix sock/peer name request
Diffstat (limited to 'examples')
-rw-r--r--examples/source.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/source.py b/examples/source.py
index a013413..7a5011d 100644
--- a/examples/source.py
+++ b/examples/source.py
@@ -12,8 +12,8 @@ class Client(Protocol):
data = b'x'*16*1024
def connection_made(self, tr):
- dprint('connecting to', tr.get_extra_info('getpeername'))
- dprint('my socket is', tr.get_extra_info('getsockname'))
+ dprint('connecting to', tr.get_extra_info('peername'))
+ dprint('my socket is', tr.get_extra_info('sockname'))
self.tr = tr
self.lost = False
self.loop = get_event_loop()