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 = socket(AF_INET, SOCK_STREAM)
|
||||||
s.bind('', port)
|
s.bind('', port)
|
||||||
s.listen(0)
|
s.listen(0)
|
||||||
conn, (host, remoteport) = s.accept()
|
conn, (remotehost, remoteport) = s.accept()
|
||||||
print 'connected by', host, remoteport
|
print 'connected by', remotehost, remoteport
|
||||||
while 1:
|
while 1:
|
||||||
data = conn.recv(BUFSIZE)
|
data = conn.recv(BUFSIZE)
|
||||||
if not data:
|
if not data:
|
||||||
|
|
Loading…
Reference in New Issue