From 6e4419a3d2d5a3c6922b9eb8819c74d58a903168 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 11 Oct 2013 10:10:06 -0700 Subject: Fix sock/peer name request --- examples/source.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') 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() -- cgit v1.2.1