mirror of https://github.com/python/cpython
Change of names
This commit is contained in:
parent
f628a985ff
commit
c99a4f900d
|
@ -20,8 +20,8 @@ def main():
|
|||
s = socket(AF_INET, SOCK_STREAM)
|
||||
s.bind('', port)
|
||||
s.listen(0)
|
||||
conn, (host, remoteport) = s.accept()
|
||||
print 'connected by', host, remoteport
|
||||
conn, (remotehost, remoteport) = s.accept()
|
||||
print 'connected by', remotehost, remoteport
|
||||
while 1:
|
||||
data = conn.recv(BUFSIZE)
|
||||
if not data:
|
||||
|
|
Loading…
Reference in New Issue