diff options
author | Guido van Rossum <guido@python.org> | 2013-10-11 10:10:06 -0700 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2013-10-11 10:10:06 -0700 |
commit | 6e4419a3d2d5a3c6922b9eb8819c74d58a903168 (patch) | |
tree | 94fe1ee4053a9868150e58247fc5e99f976c1911 /examples | |
parent | f043afbb398b71a35e28184b3ae77005373d0e92 (diff) | |
download | trollius-6e4419a3d2d5a3c6922b9eb8819c74d58a903168.tar.gz |
Fix sock/peer name request
Diffstat (limited to 'examples')
-rw-r--r-- | examples/source.py | 4 |
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() |