mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
#2752: fix second example too.
This commit is contained in:
parent
cb63565eb5
commit
98fd03637f
1 changed files with 1 additions and 1 deletions
|
@ -846,7 +846,7 @@ sends traffic to the first one connected successfully. ::
|
|||
import socket
|
||||
import sys
|
||||
|
||||
HOST = '' # Symbolic name meaning the local host
|
||||
HOST = '' # Symbolic name meaning all available interfaces
|
||||
PORT = 50007 # Arbitrary non-privileged port
|
||||
s = None
|
||||
for res in socket.getaddrinfo(HOST, PORT, socket.AF_UNSPEC, socket.SOCK_STREAM, 0, socket.AI_PASSIVE):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue